One of my customers has a file server with ~80,000 folder quota’s created by autoquota’s. Pulling up the “File Server Resource Manager” GUI takes ~60 minutes to iterate through all of the quota’s before you can begin working with them.
The solution is to use “dirquota.exe” from the command line. It’s a simple command that has really good inline help. Just type “dirquota.exe” and your presented with the options:
U:>dirquota
The syntax of this command is:Dirquota {Quota | Autoquota | Template | Admin}
Quota List, add, modify, and delete quotas.
Autoquota List, add, modify, and delete auto apply quotas.
Template List, add, modify, and delete quota templates.
Admin Configure settings and perform administrative operations.The minimum sequence that uniquely identifies a switch can be used as an
abbreviation. For example, “Dirquota q l /list-n” is equivalent to
“Dirquota quota list /list-notifications”.
As you select your options you drill into more and more detailed options. For example:
U:>dirquota quota
The syntax of this command is:Dirquota Quota {List | Add | Modify | Delete | Scan | Freespace}
List List currently configured quotas.
Add Add new quotas.
Modify Modify existing quotas.
Delete Delete existing quotas.
Scan Initiate scan to update quota usage.
Freespace Query free space.The minimum sequence that uniquely identifies a switch or a switch value can be
used as an abbreviation. For example, “Dirquota q l /list-n” is equivalent to
“Dirquota quota list /list-notifications”.
To get details on a specific quota:
U:>dirquota quota list /path:I:homejdoe
Quotas on machine FILE-HOME:Quota Path: I:homejdoe
Source Template: None
Quota Status: Enabled
Limit: 1,000.00 MB (Hard)
Used: 344.64 MB (34%)
Available: 655.36 MB
Peak Usage: 344.67 MB (10/21/2008 10/21/2008)
Thresholds:
Warning ( 85%): None
Warning ( 95%): None
Limit (100%): None
All the same information and capablities of the GUI, but easier and more reliable access.
Related posts
Windows Azure Staging Model October 10th, 2010 One of my favorite features of Windows Azure is their Production/Staging model. I...
Free Edition of Hyper-V May 18th, 2010 It’s technically called Microsoft Hyper-V Server 2008 R2. That’s why I call...
UPDATE: MSDN Events Unleashed: The Best of PDC coming to SLO March 9th, 2009 UPDATE – I just got...