Friday, 13 July 2012

Manage quotas from CMD line using "dirquota" in windows file servers

net share  or dirquota quota list | Find "Quota Path:" --**to get list of shares and paths on the server.

dirquota quota list /Status:Disabled --** to find disabled quotas on the file server



dirquota template list | Find "Template Name:" --** list of templates existing on the server


Dirquota q l /Path:path | find "Source Template:"

Dirquota Quota Modify /Path:PATH /Type:Hard /SourceTemplate:TEMPLATE
** the above command still needs to be tested as the last time i had a chance to test briefly it failed.
in the above CMD the /Type:Hard need not be specified as these settings can be configured in Templates.
the correct usage when making use of templates the above command would be

dirquota q m /Path:PATH /SourceTemplate:Template
** If the template created has spaces in it's name you can use them in closed aporstaphes 
    Ex: dirquota q m /Path:PATH /SourceTemplate:"Template Name"

No comments:

Post a Comment