DiskQuota.Remove
Top  Previous  Next


Removes disk quota on a Windows 2000 or 2003 NTFS volume for a user

Notice

1.Before you delete a user from a volume, all storage for that user must be deleted, be moved to another volume, or have its ownership transferred to another user.  
2.The disk quota must be deleted before the user account is deleted or else the DiskQuota.Remove command will fail.  

Category
Disk quota

Script section
[Undo], inside Data.Loop..EndLoop statement

DiskQuota.Remove Volume, AccountName

Volume

Full path to volume, example "x:\".  
If the volume is on a remote machine, refer to it by administrative share name, example "\\edu8\x$".  

AccountName

SamAccountName or UPN - example "steve" or "steve@acme.com"  

Full example
Manage disk quota