Partager via


Dirquota template list

 

Applies To: Windows Server 2008, Windows Server 2012

Lists currently configured quotas templates. The command output displays quota template properties, including name, space limit, quota type, and configured notification thresholds and notifications. If used without parameters, the dirquota template list command displays all quota templates that are configured on the computer.

For examples of how to use this command, see Examples.

Syntax

dirquota template list [/template:<TemplateName>] [/type:{hard | soft}] 
   [/list-notifications] [/remote:<ComputerName>]

Parameters

Parameter

Description

/template:<TemplateName>

Lists only the quota template TemplateName. If the template name contains a space, enclose the name in quotation marks.

/type:{hard | soft}

Lists only quota templates that have a specified quota type:

  • hard — prevents users from saving files when the limit is reached

  • soft — allows the limit to be exceeded

/list-notifications

Includes notification details for each quota template.

/remote:<ComputerName>

Performs the operation on the remote computer ComputerName.

Remarks

  • The shortest sequence of characters that uniquely identifies a parameter can be used as an abbreviation. For example, the following two commands are equivalent:

    dirquota t l /ty:h
    dirquota template list /type:hard
    
  • To perform operations on a remote computer with the **/remote:**ComputerName parameter:

    • You must be logged on with a domain account that is a member of the Administrators group on both the local computer and the remote computer.

    • The remote computer must be running Windows Server 2008, and File Server Resource Manager must be installed.

    • The Remote File Server Resource Manager Management exception on the remote computer must be enabled. You enable this exception by using Windows Firewall in Control Panel.

Examples

To list all quota templates configured on the local computer, type:

dirquota template list

To list the details about the notifications configured for the User Quota template, type:

dirquota template list /template:"user quota" /list-notifications

Additional references

Command-Line Syntax Key

Dirquota template