Reference for Win32_DiskPartition
(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_DiskPartition WMI class represents the capabilities and management capacity of a partitioned area of a physical disk on a Windows system. Example: Disk #0, Partition #1.

Availability (Verfügbarkeit):

WMI Class NameWindows Server 2003Windows XP ProfessionalWindows 2000Windows NT 4.0Windows 98
Win32_DiskPartitionYesYesYesYesYes

Properties (Attribute):

ItemServer 2003XP ProWindows 2000NT 4.0Windows 98
AccessYesYesYesYesYes
AvailabilityYesYesYesYesYes
BlockSizeYesYesYesYesYes
BootableYesYesYesYesYes
BootPartitionYesYesYesYesYes
CaptionYesYesYesYesYes
ConfigManagerErrorCodeYesYesYesYesYes
ConfigManagerUserConfigYesYesYesYesYes
CreationClassNameYesYesYesYesYes
DescriptionYesYesYesYesYes
DeviceIDYesYesYesYesYes
DiskIndexYesYesYesYesYes
ErrorClearedYesYesYesYesYes
ErrorDescriptionYesYesYesYesYes
ErrorMethodologyYesYesYesYesYes
HiddenSectorsYesYesYesYesYes
IndexYesYesYesYesYes
InstallDateYesYesYesYesYes
LastErrorCodeYesYesYesYesYes
NameYesYesYesYesYes
NumberOfBlocksYesYesYesYesYes
PNPDeviceIDYesYesYesYesYes
PowerManagementCapabilitiesYesYesYesYesYes
PowerManagementSupportedYesYesYesYesYes
PrimaryPartitionYesYesYesYesYes
PurposeYesYesYesYesYes
RewritePartitionYesYesYesYesYes
SizeYesYesYesYesYes
StartingOffsetYesYesYesYesYes
StatusYesYesYesYesYes
StatusInfoYesYesYesYesYes
SystemCreationClassNameYesYesYesYesYes
SystemNameYesYesYesYesYes
TypeYesYesYesYesYes

Methods (Methoden):

ItemServer 2003XP ProWindows 2000NT 4.0Windows 98
ResetYesYesYesYesYes
SetPowerStateYesYesYesYesYes

Sample Code (Beispiel):

strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_DiskPartition")
For Each objItem in colItems
    Wscript.Echo "Caption: " & objItem.Caption
Next

Links:

Link zur Original-Microsoft-Dokumentation