// Copyright (c) 1997-2003 Microsoft Corporation, All Rights Reserved #pragma autorecover #pragma classflags(64) #pragma namespace("\\\\.\\Root\\CIMV2") Instance of __Win32Provider as $DskQuotaProvider { Name = "DskQuotaProvider"; ClsId = "{4AF3F4A4-06C8-4b79-A523-633CC65CE297}"; HostingModel = "NetworkServiceHost"; }; Instance of __InstanceProviderRegistration { Provider = $DskQuotaProvider; SupportsGet = TRUE; SupportsPut = TRUE; SupportsDelete = TRUE; SupportsEnumeration = TRUE; QuerySupportLevels = {"WQL:UnarySelect"}; }; #pragma deleteclass("Win32_QuotaSettings",NOFAIL) [Association : ToInstance ToSubclass DisableOverride,Dynamic,Provider("DskQuotaProvider") : ToInstance,Locale(1033) : ToInstance,UUID("B94560CA-41CC-4FB5-BD56-282329DA41DA") : ToInstance,SupportsCreate,CreateBy("PutInstance"),SupportsDelete,DeleteBy("DeleteInstance"),SupportsUpdate] class Win32_DiskQuota { [read : ToSubclass,key : ToInstance ToSubclass DisableOverride] Win32_LogicalDisk Ref QuotaVolume; [read : ToSubclass,key : ToInstance ToSubclass DisableOverride] Win32_Account Ref User; [read : ToSubclass,ValueMap{"0", "1", "2"} : ToSubclass] uint32 Status; [read : ToSubclass,write : ToSubclass] uint64 Limit; [read : ToSubclass,write : ToSubclass] uint64 WarningLimit; [read : ToSubclass] uint64 DiskSpaceUsed; }; [Dynamic,Provider("DskQuotaProvider") : ToInstance,SupportsUpdate,Locale(1033) : ToInstance,UUID("29013152-7F77-4A8A-A8BB-E1F24DECE9F7") : ToInstance] class Win32_QuotaSetting : CIM_Setting { [read : ToSubclass,write : ToSubclass,key : ToInstance ToSubclass DisableOverride] string VolumePath; [read : ToSubclass,write : ToSubclass,ValueMap{"0", "1", "2"} : ToSubclass] uint32 State; [read : ToSubclass,write : ToSubclass] sint64 DefaultLimit; [read : ToSubclass,write : ToSubclass] sint64 DefaultWarningLimit; [read : ToSubclass,write : ToSubclass] boolean ExceededNotification; [read : ToSubclass,write : ToSubclass] boolean WarningExceededNotification; }; [Dynamic,Provider("DskQuotaProvider") : ToInstance,Locale(1033) : ToInstance,UUID("FA452BCE-5B4F-4A56-BF52-7C4533984706") : ToInstance] class Win32_VolumeQuotaSetting : CIM_ElementSetting { [read : ToSubclass,key : ToInstance ToSubclass DisableOverride,Override("Element")] Win32_LogicalDisk Ref Element; [read : ToSubclass,key : ToInstance ToSubclass DisableOverride,Override("Setting")] Win32_QuotaSetting Ref Setting; }; #pragma autorecover #pragma classflags(64) #pragma namespace("\\\\.\\Root\\CIMV2") instance of __namespace{ name="ms_409";}; #pragma namespace("\\\\.\\Root\\CIMV2\\ms_409") #pragma deleteclass("Win32_QuotaSettings",NOFAIL) [Description("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.") : Amended ToSubclass,AMENDMENT, LOCALE("ms_409") : ToInstance] class Win32_DiskQuota { [key : ToInstance ToSubclass DisableOverride,Description("The QuotaVolume reference represents the disk volume which has disk quotas.") : Amended ToSubclass] Win32_LogicalDisk Ref QuotaVolume; [key : ToInstance ToSubclass DisableOverride,Description("The User reference represents the user account associated with a disk quota.") : Amended ToSubclass] Win32_Account Ref User; [Description("A Status property indicates the current status of the Disk Quota.") : Amended ToSubclass,Values{"OK", "Warning", "Exceeded"} : Amended ToSubclass] uint32 Status; [Units("bytes") : Amended ToSubclass,Description("The Limit property indicates the limit set for this particular user or group.") : Amended ToSubclass] uint64 Limit; [Units("bytes") : Amended ToSubclass,Description("The WarningLimit property indicates the warning limit set for this particular user or group.") : Amended ToSubclass] uint64 WarningLimit; [Units("bytes") : Amended ToSubclass,Description("The DiskSpaceUsed property indicates the current number of bytes currently in use by this particular user or group.") : Amended ToSubclass] uint64 DiskSpaceUsed; }; [Description("The Win32_QuotaSetting class contains setting information for disk quotas on a volume.") : Amended ToSubclass,AMENDMENT, LOCALE("ms_409") : ToInstance] class Win32_QuotaSetting : CIM_Setting { [key : ToInstance ToSubclass DisableOverride,Description("The VolumePath property indicates the name of the volume that disk quotas are on. It can be volume name, volume path (ex D:\\) or it can be the unique volume name like \\\\?Volume{GUID}\\.") : Amended ToSubclass] string VolumePath; [Description("The State property indicates what the level of quota management set for this particular volume. Disabled indicates that Quota management is not enabled on this volume. Tracked indicates that Quota's are tracked but the limit value is not enforced and users may exceed their quota limit. Enforced indicates that Quota's are tracked and enforce on this volume.") : Amended ToSubclass,Values{"Disabled", "Tracked", "Enforced"} : Amended ToSubclass] uint32 State; [Units("bytes") : Amended ToSubclass,Description("The DefaultLimit property indicates the default limit set for quotas on this particular volume.") : Amended ToSubclass] sint64 DefaultLimit; [Units("bytes") : Amended ToSubclass,Description("The DefaultWarningLimit property indicates the default warning limit set for quotas on this particular volume.") : Amended ToSubclass] sint64 DefaultWarningLimit; [Description("The ExceedNotification property indicates whether or not events will be written to the event log when quotas are exceeded.") : Amended ToSubclass] boolean ExceededNotification; [Description("The WarningExceedNotification property indicates whether or not events will be written to the event log when warnings are exceeded.") : Amended ToSubclass] boolean WarningExceededNotification; }; [Description("The Win32_VolumeQuotaSetting class associates the disk quota setting with a specific disk volume.") : Amended ToSubclass,AMENDMENT, LOCALE("ms_409") : ToInstance] class Win32_VolumeQuotaSetting : CIM_ElementSetting { [key : ToInstance ToSubclass DisableOverride,Description("The DiskVolume for the associated disk quota setting.") : Amended ToSubclass] Win32_LogicalDisk Ref Element; [key : ToInstance ToSubclass DisableOverride,Description("The QuotaSetting associated with the referenced LogicalDisk.") : Amended ToSubclass] Win32_QuotaSetting Ref Setting; };