Exchange 2003 Mailbox Store defaults via VBScript

  • Thread starter James Whitlow
  • Start date Views 904
J

James Whitlow

Can anyone tell me if it is possible to use VBScript to get the default
'mDBStorageQuote', 'mDBOverQuotaLimit' & 'mDBOverHardQuotaLimit' settings
for a Mail Store DB on an Exchange server & if so, possibly point me to some
sample code?

I know how to query these values for a domain user as well as checking the
'mDBUseDefaults' for the user, but I have had no success if finding a way to
have my script query the default for the message store on the server.

 
R

Rich Matheisen [MVP]

On Fri, 12 Jun 2009 18:45:08 -0500, "James Whitlow"
<jwhitlow.60372693@bloglines.com> wrote:

> Can anyone tell me if it is possible to use VBScript to get the default
>'mDBStorageQuote', 'mDBOverQuotaLimit' & 'mDBOverHardQuotaLimit' settings
>for a Mail Store DB on an Exchange server & if so, possibly point me to some
>sample code?
>
> I know how to query these values for a domain user as well as checking the
>'mDBUseDefaults' for the user, but I have had no success if finding a way to
>have my script query the default for the message store on the server.


That information's in the AD, just as it is for a user. The difference
is that what you're looking for is in the Configuration container.

Instead of looking for "objectclass=user", search for
"objectclass=msExchPrivateMDB". The property names are the same as the
ones you already use.

 
J

James Whitlow

"Rich Matheisen [MVP]" <richnews@rmcons.com.NOSPAM.COM> wrote in message
news:pc7635h6r8e175qm3vn8ramtel46sg1jun@4ax.com...
> On Fri, 12 Jun 2009 18:45:08 -0500, "James Whitlow"
> <jwhitlow.60372693@bloglines.com> wrote:
>
>> Can anyone tell me if it is possible to use VBScript to get the default
>>'mDBStorageQuote', 'mDBOverQuotaLimit' & 'mDBOverHardQuotaLimit' settings
>>for a Mail Store DB on an Exchange server & if so, possibly point me to
>>some
>>sample code?
>>
>> I know how to query these values for a domain user as well as checking
>> the
>>'mDBUseDefaults' for the user, but I have had no success if finding a way
>>to
>>have my script query the default for the message store on the server.

>
> That information's in the AD, just as it is for a user. The difference
> is that what you're looking for is in the Configuration container.
>
> Instead of looking for "objectclass=user", search for
> "objectclass=msExchPrivateMDB". The property names are the same as the
> ones you already use.


Thanks, Rich!! That was exactly what I was looking for!

 
J

Jeff Jones

unsubscribe all microsoft.public.active.directory
"James Whitlow" <jwhitlow.60372693@bloglines.com> wrote in message
news:e7b3Tf76JHA.4116@TK2MSFTNGP04.phx.gbl...
> Can anyone tell me if it is possible to use VBScript to get the default
> 'mDBStorageQuote', 'mDBOverQuotaLimit' & 'mDBOverHardQuotaLimit' settings
> for a Mail Store DB on an Exchange server & if so, possibly point me to
> some sample code?
>
> I know how to query these values for a domain user as well as checking
> the 'mDBUseDefaults' for the user, but I have had no success if finding a
> way to have my script query the default for the message store on the
> server.
>
>
>
>


 
Top