Reference for Win32_DiskQuota
|
|
Category (Kategorie): Disks and Storage
Description (Beschreibung): 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.
Availability (Verfügbarkeit): WMI Class Name | Windows Server 2003 | Windows XP Professional | Windows 2000 | Windows NT 4.0 | Windows 98 | Win32_DiskQuota | Yes | Yes | - | - | - |
Sample Code (Beispiel):
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_DiskQuota")
For Each objItem in colItems
Wscript.Echo "Caption: " & objItem.Caption
Next
Links:
Link zur Original-Microsoft-Dokumentation
www.IT-Visions.de, (C) Dr. Holger Schwichtenberg
|