Windows 2003 Folder Quota’s Command Line Management

admin Last updated on: April 13, 2023

Windows 2003 Folder Quota’s Command Line Management

October 23rd, 2008

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

Active Directory Programming Do you want your application to integrate with Active Directory? Want to authenticate your users, or...

Speaking History San Luis Obispo .Net Users Group, July 2010 Windows Phone 7 Development SoCalCodeCamp, San Diego, June 2010...

SLO MSDN Event Huge Success » img_2165

Học cách giải Rubik 3×3 đảm bảo thành công chỉ trong 10 phút

Học cách giải Rubik 3×3 đảm bảo thành công chỉ trong 10 phút

Cách giải Rubik 3×3 là một kỹ năng không quá khó học, ngay cả người bình thường cũng có...

Request Presentation If you are interested in Steve Evans speaking for your company, organization, or event please fill out...