Reference for Win32_Volume
(Diese Seite wurde noch nicht auf das neue Layout umgestellt!)

Select by Class Type Search by Keyword
Show all classes

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 NameWindows Server 2003Windows XP ProfessionalWindows 2000Windows NT 4.0Windows 98
Win32_VolumeYes----

Properties (Attribute):

ItemServer 2003XP ProWindows 2000NT 4.0Windows 98
AccessYes----
AutomountYes----
AvailabilityYes----
BlockSizeYes----
CapacityYes----
CaptionYes----
CompressedYes----
ConfigManagerErrorCodeYes----
ConfigManagerUserConfigYes----
CreationClassNameYes----
DescriptionYes----
DeviceIDYes----
DirtyBitSetYes----
DriveLetterYes----
DriveTypeYes----
ErrorClearedYes----
ErrorDescriptionYes----
ErrorMethodologyYes----
FileSystemYes----
FreeSpaceYes----
IndexingEnabledYes----
InstallDateYes----
LabelYes----
LastErrorCodeYes----
MaximumFileNameLengthYes----
NameYes----
NumberOfBlocksYes----
PNPDeviceIDYes----
PowerManagementCapabilitiesYes----
PowerManagementSupportedYes----
PurposeYes----
QuotasEnabledYes----
QuotasIncompleteYes----
QuotasRebuildingYes----
SerialNumberYes----
StatusYes----
StatusInfoYes----
SupportsDiskQuotasYes----
SupportsFileBasedCompressionYes----
SystemCreationClassNameYes----
SystemNameYes----

Methods (Methoden):

ItemServer 2003XP ProWindows 2000NT 4.0Windows 98
AddMountPointYes----
ChkdskYes----
DefragYes----
DefragAnalysisYes----
DismountYes----
ExcludeFromAutoChkYes----
FormatYes----
MountYes----
ResetYes----
ScheduleAutoChkYes----
SetPowerStateYes----

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