Compartilhar via


Win32_QuotaSetting class

The Win32_QuotaSetting WMI class contains setting information for disk quotas on a volume.

The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties. Properties and methods are in alphabetic order, not MOF order.

Syntax

class Win32_QuotaSetting : CIM_Setting
{
  string  Caption;
  sint64  DefaultLimit;
  sint64  DefaultWarningLimit;
  string  Description;
  boolean ExceededNotification;
  string  SettingID;
  uint32  State;
  string  VolumePath;
  boolean WarningExceededNotification;
};

Members

The Win32_QuotaSetting class has these types of members:

Properties

The Win32_QuotaSetting class has these properties.

Caption

Data type: string

Access type: Read-only

Qualifiers: MaxLen (64)

Short description of the object a one line string. This property is inherited from CIM_Setting.

DefaultLimit

Data type: sint64

Access type: Read/write

Qualifiers: Units (Bytes)

Default limit set for quotas on this specific volume.

Windows Server 2003 and Windows XP: Datatype is uint64.

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

DefaultWarningLimit

Data type: sint64

Access type: Read/write

Qualifiers: Units (Bytes)

Default warning limit set for quotas on this specific volume.

Windows Server 2003 and Windows XP: Datatype is uint64.

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

Description

Data type: string

Access type: Read/write

Comment that describes the link. This property is inherited from CIM_Setting.

ExceededNotification

Data type: boolean

Access type: Read/write

If TRUE, events are written to the event log when quotas are exceeded.

SettingID

Data type: string

Access type: Read-only

Qualifiers: MaxLen (256)

Name of a CIM_Setting object.

State

Data type: uint32

Access type: Read/write

Level of quota management set for this volume.

The values are:

Values Meaning
0
Disabled
Quota management is not enabled on this volume.
1
Tracked
Quotas are tracked but the limit value is not enforced and users may exceed their quota limit.
2
Enforced
Quotas are tracked and enforced on this volume.

VolumePath

Data type: string

Access type: Read/write

Qualifiers: Key

Name of the volume where disk quotas are located. It can be volume name, volume path (such as D:\), or it can be the unique volume name (such as "\\\\?Volume{GUID}\\.").

WarningExceededNotification

Data type: boolean

Access type: Read/write

If TRUE, events are written to the event log when warnings are exceeded.

Remarks

The Win32_QuotaSetting class is derived from CIM_Setting.

Requirements

Minimum supported client
Windows XP
Minimum supported server
Windows Server 2003
Namespace
Root\CIMV2
MOF
Wmipdskq.mof
DLL
Wmipdskq.dll

See also

Operating System Classes