|
|
|
date: Sun, 9 Mar 2008 22:48:39 +0100,
group: microsoft.public.exchange.development
back
Re: How to access StorageLimitInfo property on Exchange 2007?
No you cant the WMI class's where also discontinued in 2007 the best solution is to use Powershell and the Exchange Cmdlets if you have Exchange 2007 then everything you need is available to you VBS is not the right tool to be using to do this and will put you at a disadvantage. To do this in VBS you would need to retrieve all the information this is based on using multiple API's eg you would need to connect to the (or each if you are trying to do this for every mailbox on a server) Mailbox you wanted to check directly using an Exchange mailbox API such as Mapi (CDO 1.2,OOM),Exoledb,WebDAV to get the mailbox size. And then you would need to use ADSI to query the mDBStorageQuota,mDBOverQuotaLimit,mDBOverHardQuotaLimit on both the mailbox and the MailStore to work out if mailbox quotas apply and then do your own calculations based on what information you retrieve. The problem with this is you'll need to write a lot more code and you'll need full rights to every mailbox ect vs the Powershell equivalent which would be a few lines of code and just delegate Exchange Admin rights.
Cheers
Glen
"Vedran Matica" wrote in message news:%23CmNW9igIHA.5624@TK2MSFTNGP02.phx.gbl...
Hi,
Is there a way to access StorageLimitInfo property on Exchange 2007, except using PowerShell. I know it can be done using Get-MailboxStatistics cmdlet, but my requirement is to use VBScript.
I have tried to access it using \ROOT\MicrosoftExchangeV2 provider as in Exchange 2003, but it gives me an error.
Thanks a lot in advance.
Best regards,
Vedran Matica
date: Mon, 10 Mar 2008 09:36:52 +1100
author: Glen Scales [MVP]
Re: How to access StorageLimitInfo property on Exchange 2007?
Thanks Glen.
I was not aware that WMI class's were discontinued in Ex2007.
Yes, I am aware of the more complicated procedure when using vbscript, connecting to mailoxes, retrieving size,... It was not that complicated on Ex2003 using StorageLimitInfo property. Powershell does provide that option, using far less code, but for some reason I need vbscript.
Thanks,
Vedran
"Glen Scales [MVP]" wrote in message news:exWqSYjgIHA.1944@TK2MSFTNGP02.phx.gbl...
No you cant the WMI class's where also discontinued in 2007 the best solution is to use Powershell and the Exchange Cmdlets if you have Exchange 2007 then everything you need is available to you VBS is not the right tool to be using to do this and will put you at a disadvantage. To do this in VBS you would need to retrieve all the information this is based on using multiple API's eg you would need to connect to the (or each if you are trying to do this for every mailbox on a server) Mailbox you wanted to check directly using an Exchange mailbox API such as Mapi (CDO 1.2,OOM),Exoledb,WebDAV to get the mailbox size. And then you would need to use ADSI to query the mDBStorageQuota,mDBOverQuotaLimit,mDBOverHardQuotaLimit on both the mailbox and the MailStore to work out if mailbox quotas apply and then do your own calculations based on what information you retrieve. The problem with this is you'll need to write a lot more code and you'll need full rights to every mailbox ect vs the Powershell equivalent which would be a few lines of code and just delegate Exchange Admin rights.
Cheers
Glen
"Vedran Matica" wrote in message news:%23CmNW9igIHA.5624@TK2MSFTNGP02.phx.gbl...
Hi,
Is there a way to access StorageLimitInfo property on Exchange 2007, except using PowerShell. I know it can be done using Get-MailboxStatistics cmdlet, but my requirement is to use VBScript.
I have tried to access it using \ROOT\MicrosoftExchangeV2 provider as in Exchange 2003, but it gives me an error.
Thanks a lot in advance.
Best regards,
Vedran Matica
date: Mon, 10 Mar 2008 09:42:00 +0100
author: Vedran Matica
|
|