Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

The optional "Label" field or "Description" field does not appear when you run the DIRQUOTA command in Windows Server 2008


View products that this article applies to.

Symptoms

In Windows Server 2008, you create a disk quota, you specify an optional property named "Label" for the disk quota, and then you use one of the following commands to query the existing specified quotas:
dirquota quota list

dirquota /q /l
However, the optional Label field does not appear in the command output.

Note In Windows Server 2008 R2, the optional Label field is renamed "Description." The Description field also does not appear in the output of the dirquota command.

↑ Back to the top


Cause

This problem occurs because the dirquota command is not updated to display the object that contains the label information.

↑ Back to the top


Workaround

To work around this issue, use one of the following methods.

Method 1

In the release version of Windows Server 2008, run the following VB script to programatically access the quota object and to display the missing Label or Description fields:
Dim quotaManager
Set quotaManager = CreateObject( "Fsrm.FsrmQuotaManager" )
Dim quotas
Set quotas = quotaManager.EnumQuotas(, 0)
WScript.echo "Num Quotas New:" & quotas.Count

for each quota in quotas
        WScript.echo "  Path:" & quota.QuotaPath
        WScript.echo "  Desc:" & quota.Description
        WScript.echo ""
next
Method 2

In Windows Server 2008 R2, run the following Powershell script to programatically access the quota object and to display the missing Description field:
$m = New-Object -com Fsrm.FsrmQuotaManager
foreach ($q in $m.EnumQuotas()) {
       host-write � Path: � + $q.QuotaPath
       host-write � Desc:� + $q.Description
       host-write ��
}

Note Because Powershell does not currently support File Server Resource Manager (FSRM), you can only use the Powershell script in Windows Server 2008 R2.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


More information

The Dirquota command-line tool is installed together with File Server Resource Manager and includes subcommands to create and manage quotas, auto apply quotas, and quota templates, and to configure general administrative options for working with quotas.

For more information about the dirquota command, visit the following Microsoft Web site:

↑ Back to the top


Keywords: KB971712, kbprb, kbsurveynew, kbtshoot, kbexpertiseinter

↑ Back to the top

Article Info
Article ID : 971712
Revision : 2
Created on : 7/16/2009
Published on : 7/16/2009
Exists online : False
Views : 423