Reference for Win32_Volume
|
|
Category (Kategorie): Disks and Storage
Description (Beschreibung): The Win32_Volume class represents an area of storage on a hard disk. The class returns local volumes that are formatted, unformatted, mounted or offline. A volume is formatted by using a file system, such as FAT or NTFS, and may have a drive letter assigned to it. A single hard disk can have multiple volumes, and volumes can also span multiple disks. The Win32_Volume class does not support diskette drive management.
Availability (Verfügbarkeit): WMI Class Name | Windows Server 2003 | Windows XP Professional | Windows 2000 | Windows NT 4.0 | Windows 98 | Win32_Volume | Yes | - | - | - | - |
Properties (Attribute): Item | Server 2003 | XP Pro | Windows 2000 | NT 4.0 | Windows 98 | Access | Yes | - | - | - | - | Automount | Yes | - | - | - | - | Availability | Yes | - | - | - | - | BlockSize | Yes | - | - | - | - | Capacity | Yes | - | - | - | - | Caption | Yes | - | - | - | - | Compressed | Yes | - | - | - | - | ConfigManagerErrorCode | Yes | - | - | - | - | ConfigManagerUserConfig | Yes | - | - | - | - | CreationClassName | Yes | - | - | - | - | Description | Yes | - | - | - | - | DeviceID | Yes | - | - | - | - | DirtyBitSet | Yes | - | - | - | - | DriveLetter | Yes | - | - | - | - | DriveType | Yes | - | - | - | - | ErrorCleared | Yes | - | - | - | - | ErrorDescription | Yes | - | - | - | - | ErrorMethodology | Yes | - | - | - | - | FileSystem | Yes | - | - | - | - | FreeSpace | Yes | - | - | - | - | IndexingEnabled | Yes | - | - | - | - | InstallDate | Yes | - | - | - | - | Label | Yes | - | - | - | - | LastErrorCode | Yes | - | - | - | - | MaximumFileNameLength | Yes | - | - | - | - | Name | Yes | - | - | - | - | NumberOfBlocks | Yes | - | - | - | - | PNPDeviceID | Yes | - | - | - | - | PowerManagementCapabilities | Yes | - | - | - | - | PowerManagementSupported | Yes | - | - | - | - | Purpose | Yes | - | - | - | - | QuotasEnabled | Yes | - | - | - | - | QuotasIncomplete | Yes | - | - | - | - | QuotasRebuilding | Yes | - | - | - | - | SerialNumber | Yes | - | - | - | - | Status | Yes | - | - | - | - | StatusInfo | Yes | - | - | - | - | SupportsDiskQuotas | Yes | - | - | - | - | SupportsFileBasedCompression | Yes | - | - | - | - | SystemCreationClassName | Yes | - | - | - | - | SystemName | Yes | - | - | - | - |
Methods (Methoden): Item | Server 2003 | XP Pro | Windows 2000 | NT 4.0 | Windows 98 | AddMountPoint | Yes | - | - | - | - | Chkdsk | Yes | - | - | - | - | Defrag | Yes | - | - | - | - | DefragAnalysis | Yes | - | - | - | - | Dismount | Yes | - | - | - | - | ExcludeFromAutoChk | Yes | - | - | - | - | Format | Yes | - | - | - | - | Mount | Yes | - | - | - | - | Reset | Yes | - | - | - | - | ScheduleAutoChk | Yes | - | - | - | - | SetPowerState | Yes | - | - | - | - |
Sample Code (Beispiel):
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_Volume")
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
|