Win32_DiskQuota class
The Win32_DiskQuota association WMI class tracks disk space usage for NTFS file system volumes. A system administrator (SA) can configure Windows to prevent further disk space use, and log an event when a user exceeds a specified disk space limit. An SA can also log an event when a user exceeds a specified disk space warning level. This class is new in Windows XP.
The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties. Properties are listed in alphabetic order, not MOF order.
Syntax
class Win32_DiskQuota
{
uint64 DiskSpaceUsed;
uint64 Limit;
Win32_LogicalDisk REF QuotaVolume;
uint32 Status;
Win32_Account REF User;
uint64 WarningLimit;
};
Members
The Win32_DiskQuota class has these types of members:
Properties
The Win32_DiskQuota class has these properties.
-
DiskSpaceUsed
-
-
Data type: uint64
-
Access type: Read-only
-
Qualifiers: Units (bytes)
Number of bytes currently in use by this particular user or group.
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 particular user or group.
For more information about using uint64 values in scripts, see Scripting in WMI.
-
-
QuotaVolume
-
-
Data type: Win32_LogicalDisk
-
Access type: Read-only
-
Qualifiers: Key
Reference to the instance representing disk quotas.
-
-
Status
-
-
Data type: uint32
-
Access type: Read-only
Current status of the disk quota.
The values are:
Value Meaning - 0
"OK" - 1
"Warning" - 2
"Exceeded" -
-
User
-
-
Data type: Win32_Account
-
Access type: Read-only
-
Qualifiers: Key
Reference to the instance representing the user account associated with a disk quota.
-
-
WarningLimit
-
-
Data type: uint64
-
Access type: Read/write
-
Qualifiers: Units (bytes)
Warning limit set for this particular user or group.
For more information about using uint64 values in scripts, see Scripting in WMI.
-
Requirements
Minimum supported client |
Windows XP |
Minimum supported server |
Windows Server 2003 |
Namespace |
Root\CIMV2 |
MOF |
|
DLL |
|