#90128 - 2002-12-03 01:18 PM
Re: Exch 2000 Mailbox Attribute
|
Bonji
Starting to like KiXtart
Registered: 2001-09-28
Posts: 169
Loc: Virginia
|
This applies to Exchange 2000...
Here's some code to view the storage settings for an Exchange user. You will need to modify the LDAP path to be valid for your domain.
code:
BREAK ON
$adsUser = GetObject("LDAP://CN=USER,OU=OrgUnit,DC=DOMAIN,DC=COM") $adsUser.GetInfo
? $adsUser.FullName ; Fullname of User ? $adsUser.mailNickname ; Exchange Alias ? $adsUser.mDBUseDefaults ; Does this user use the store defaults ? $adsUser.mDBStorageQuota ; When to issue a warning ? $adsUser.mDBOverQuotaLimit ; When to prevent sending ? $adsUser.mDBOverHardQuotaLimit ; When to prevent sending and receiving
$adsUser = Nothing
This should get you over the hump.
-Ben http://www.rgcweb.org/kix
|
Top
|
|
|
|
#90134 - 2002-12-04 01:44 PM
Re: Exch 2000 Mailbox Attribute
|
Bonji
Starting to like KiXtart
Registered: 2001-09-28
Posts: 169
Loc: Virginia
|
Setting any of the values to -1 turns it off. It will show a -1 in the Microsoft OU tool (vs a blank), but that is OK as that is the correct value for it to be off. Here's some updated code...
code:
BREAK ON
$adsUser = GetObject("LDAP://CN=USER,OU=OrgUnit,DC=DOMAIN,DC=COM") $adsUser.GetInfo
? $adsUser.FullName ; Fullname of User ? $adsUser.mailNickname ; Exchange Alias ? $adsUser.mDBUseDefaults ; Does this user use the store defaults ? $adsUser.mDBStorageQuota ; When to issue a warning ? $adsUser.mDBOverQuotaLimit ; When to prevent sending ? $adsUser.mDBOverHardQuotaLimit ; When to prevent sending and receiving
$adsUser.mDBOverHardQuotaLimit = -1 $adsUser.SetInfo ? @SERROR + " : " + @ERROR ; Verify changes were accepted ? $adsUser.mDBOverHardQuotaLimit ; Updated setting
$adsUser = Nothing
-Ben http://www.rgcweb.org/kix [ 04. December 2002, 13:46: Message edited by: Ben Dulaney ]
|
Top
|
|
|
|
#90137 - 2002-12-06 04:07 PM
Re: Exch 2000 Mailbox Attribute
|
Bonji
Starting to like KiXtart
Registered: 2001-09-28
Posts: 169
Loc: Virginia
|
Yes, that is very strange. It appears the only solution is that each scenario requires a unique solution. This is very annoying, and I cannot find a one-size-fits-all fix.
I guess we have to tough this one out.
-Ben http://www.rgcweb.org/kix
|
Top
|
|
|
|
Moderator: Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart
|
1 registered
(Allen)
and 466 anonymous users online.
|
|
|