Microsoft Knowledge Base Email Alertz

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

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 971712 - Last Review: July 16, 2009 - Revision: 1.1

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

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.

CAUSE

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

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.

STATUS

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

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:
http://technet.microsoft.com/en-us/library/cc754836.aspx (http://technet.microsoft.com/en-us/library/cc754836.aspx)

APPLIES TO
  • Windows Server 2008 Standard
  • Windows Server 2008 Enterprise
  • Windows Server 2008 Datacenter
  • Windows Server 2008 R2 Standard
  • Windows Server 2008 R2 Enterprise
  • Windows Server 2008 R2 Datacenter
Keywords: 
kbexpertiseinter kbtshoot kbsurveynew kbprb KB971712
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate