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

Portland Code Camp

Portland Code Camp

Portland Code Camp

Load Balancing IIS Web Farm on Amazon EC

Load Balancing IIS Web Farm on Amazon EC

Load Balancing IIS Web Farm on Amazon EC2

Installing ADDS Role

Installing ADDS Role

Windows Server Core: Installing ADDS Role March 2nd, 2010 Windows Server Core is a great option for your domain...

System.DirectoryServices Search Performance – Part 4

System.DirectoryServices Search Performance – Part 4

System.DirectoryServices Search Performance – Part 4 December 15th, 2008 NOTE: This post is part of a series. Evaluating Performance...

System.DirectoryServices Presentation

System.DirectoryServices Presentation

System.DirectoryServices Presentation

Code Camp Speaker Reviews

Code Camp Speaker Reviews

Code Camp Speaker Reviews March 25th, 2010 One more blog post where I am just linking to someone else. ...