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 ]