Reference for Win32_DiskDrive
(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_DiskDrive WMI class represents a physical disk drive as seen by a computer running the Windows operating system. Any interface to a Windows physical disk drive is a descendent (or member) of this class. The features of the disk drive seen through this object correspond to the logical and management characteristics of the drive. In some cases, this may not reflect the actual physical characteristics of the device. Any object based on another logical device would not be a member of this class.

Availability (Verfügbarkeit):

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

Properties (Attribute):

ItemServer 2003XP ProWindows 2000NT 4.0Windows 98
AvailabilityYesYesYesYesYes
BytesPerSectorYesYesYesYesYes
CapabilitiesYesYesYesYesYes
CapabilityDescriptionsYesYesYesYesYes
CaptionYesYesYesYesYes
CompressionMethodYesYesYesYesYes
ConfigManagerErrorCodeYesYesYesYesYes
ConfigManagerUserConfigYesYesYesYesYes
CreationClassNameYesYesYesYesYes
DefaultBlockSizeYesYesYesYesYes
DescriptionYesYesYesYesYes
DeviceIDYesYesYesYesYes
ErrorClearedYesYesYesYesYes
ErrorDescriptionYesYesYesYesYes
ErrorMethodologyYesYesYesYesYes
IndexYesYesYesYesYes
InstallDateYesYesYesYesYes
InterfaceTypeYesYesYesYesYes
LastErrorCodeYesYesYesYesYes
ManufacturerYesYesYesYesYes
MaxBlockSizeYesYesYesYesYes
MaxMediaSizeYesYesYesYesYes
MediaLoadedYesYesYesYesYes
MediaTypeYesYesYesYesYes
MinBlockSizeYesYesYesYesYes
ModelYesYesYesYesYes
NameYesYesYesYesYes
NeedsCleaningYesYesYesYesYes
NumberOfMediaSupportedYesYesYesYesYes
PartitionsYesYesYesYesYes
PNPDeviceIDYesYesYesYesYes
PowerManagementCapabilitiesYesYesYesYesYes
PowerManagementSupportedYesYesYesYesYes
SCSIBusYesYesYesYesYes
SCSILogicalUnitYesYesYesYesYes
SCSIPortYesYesYesYesYes
SCSITargetIdYesYesYesYesYes
SectorsPerTrackYesYesYesYesYes
SignatureYesYes---
SizeYesYesYesYesYes
StatusYesYesYesYesYes
StatusInfoYesYesYesYesYes
SystemCreationClassNameYesYesYesYesYes
SystemNameYesYesYesYesYes
TotalCylindersYesYesYesYesYes
TotalHeadsYesYesYesYesYes
TotalSectorsYesYesYesYesYes
TotalTracksYesYesYesYesYes
TracksPerCylinderYesYesYesYesYes

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_DiskDrive")
For Each objItem in colItems
    Wscript.Echo "Caption: " & objItem.Caption
Next

Links:

Link zur Original-Microsoft-Dokumentation