Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
date: Sun, 9 Mar 2008 22:48:39 +0100,    group: microsoft.public.exchange.development        back       


How to access StorageLimitInfo property on Exchange 2007?   
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: Sun, 9 Mar 2008 22:48:39 +0100   author:   Vedran Matica

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

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us