Compartilhar via


Win32_VolumeUserQuota class

The Win32_VolumeUserQuota association class relates per user quotas to quota-enabled volumes. A system administrator can configure Windows to prevent disk space use that is more than a user's quota, and then log an event when a user exceeds the specified disk space limit. A system administrator can also log an event when a user exceeds a specified disk space warning level. A disk quota cannot be set for an administrator account.

Windows XP and earlier: This class is not available.

The following syntax is simplified from Managed Object format (MOF) code and includes all of the inherited properties.

Syntax

class Win32_VolumeUserQuota
{
  Win32_Account REF Account;
  uint64            DiskSpaceUsed;
  uint32            Status;
  uint64            Limit;
  Win32_Volume  REF Volume;
  uint64            WarningLimit;
};

Members

The Win32_VolumeUserQuota class has these types of members:

Properties

The Win32_VolumeUserQuota class has these properties.

Account

Data type: Win32_Account

Access type: Read-only

Qualifiers: Key, Max (1), Min (1)

Reference to the volume.

DiskSpaceUsed

Data type: uint64

Access type: Read-only

Qualifiers: Units (Bytes)

Number of bytes that a user or group is using.

For more information about using uint64 values in scripts, see Scripting in WMI.

Limit

Data type: uint64

Access type: Read/write

Qualifiers: Units (Bytes)

Limit set for this user or group in bytes.

For more information about using uint64 values in scripts, see Scripting in WMI.

Status

Data type: uint32

Access type: Read-only

Status of a disk quota.

The following table lists the possible values.

Value Meaning
0
OK
1
Warning
2
Exceeded

Volume

Data type: Win32_Volume

Access type: Read-only

Qualifiers: Key, Max (1), Min (1)

Reference to a volume.

WarningLimit

Data type: uint64

Access type: Read-only

Qualifiers: Units (Bytes)

Number of bytes a user or group can use before receiving a warning.

For more information about using uint64 values in scripts, see Scripting in WMI.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2003
Namespace
Root\CIMV2
MOF
Vds.mof
DLL
Vdswmi.dll

See also

Storage Volume Provider

Win32_Volume

Win32_VolumeQuota

Win32_DefragAnalysis

Win32_MountPoint