Win32_DiskQuota

The Win32_DiskQuota association class tracks disk space usage for NTFS volumes. System administrators can configure Windows to prevent further disk space use and log an event when a user exceeds a specified disk space limit. They can also log an event when a user exceeds a specified disk space warning level. Note that disk quotas cannot be set for the Administrator accounts themselves.

Quick Start

Properties

Most WMI properties are read-only. You can only read values but not change them. Few properties are also writeable. You can assign new values to those properties.

Writeable properties are marked with this icon:   

DiskSpaceUsed

Data type UInt64

The DiskSpaceUsed property indicates the current number of bytes currently in use by this particular user or group.

  Limit

Data type UInt64

The Limit property indicates the limit set for this particular user or group.

QuotaVolume

Data type Reference

The QuotaVolume reference represents the disk volume which has disk quotas.

Status

Data type UInt32

A Status property indicates the current status of the Disk Quota.

$Status_ReturnValue = 
@{
    0='OK'
    1='Warning'
    2='Exceeded'
}

User

Data type Reference

The User reference represents the user account associated with a disk quota.

  WarningLimit

Data type UInt64

The WarningLimit property indicates the warning limit set for this particular user or group.

Methods

Examples

Help and Questions

  Community Content

You are cordially invited to add knowledge to this page. If you have sample code or additional information related to this WMI class, please share it. Use the comment form to send your information. We will edit and incorparate it into the reference library. Thank you!

Please do not use the comment form to submit questions. If you have questions or need assistance, visit our free forum: Help me with WMI.

Content last updated: 2013-12-27 12:30:31 (UTC).

Facebooktwittergoogle_pluspinterestlinkedinFacebooktwittergoogle_pluspinterestlinkedin