BACK TO INDEX

Win32_DiskDrive
The Win32_DiskDrive class represents a physical disk drive as seen by a computer running the Win32 operating system. Any interface to a Win32 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. Example: IDE Fixed Disk.
NameSpace Path
\ROOT\CIMV2\SMS
PROPERTYSMS_REPORTCIMTYPEDESCRIPTION
AvailabilityUInt16The availability and status of the device. For example, the Availability property indicates that the device is running and has full power (value=3), or is in a warning (4), test (5), degraded (10) or power save state (values 13-15 and 17). Regarding the power saving states, these are defined as follows: Value 13 ("Power Save - Unknown") indicates that the device is known to be in a power save mode, but its exact status in this mode is unknown; 14 ("Power Save - Low Power Mode") indicates that the device is in a power save state but still functioning, and may exhibit degraded performance; 15 ("Power Save - Standby") describes that the device is not functioning but could be brought to full power 'quickly'; and value 17 ("Power Save - Warning") indicates that the device is in a warning state, though also in a power save mode.
BytesPerSectorUInt32The BytesPerSector property indicates the number of bytes in each sector for the physical disk drive. Example: 512
CapabilitiesUInt16Capabilities of the media access device. For example, the device may support "Random Access", removable media and "Automatic Cleaning". In this case, the values 3, 7 and 9 would be written to the array. Several of the enumerated values require some explanation: 1) Value 11, Supports Dual Sided Media, distinguishes a Device that can access both sides of dual sided Media, from a Device that reads only a single side and requires the Media to be flipped; and, 2) Value 12, Predismount Eject Not Required, indicates that Media does not have to be explicitly ejected from the Device before being accessed by a PickerElement.
CapabilityDescriptionsStringAn array of free-form strings providing more detailed explanations for any of the access device features indicated in the Capabilities array. Note, each entry of this array is related to the entry in the Capabilities array that is located at the same index.
CaptionStringThe Caption property is a short textual description (one-line string) of the object.
CompressionMethodStringA free form string indicating the algorithm or tool used by the device to support compression. If it is not possible or not desired to describe the compression scheme (perhaps because it is not known), recommend using the following words: "Unknown" to represent that it is not known whether the device supports compression capabilities or not, "Compressed" to represent that the device supports compression capabilities but either its compression scheme is not known or not disclosed, and "Not Compressed" to represent that the devices does not support compression capabilities.
ConfigManagerErrorCodeUInt32Indicates the Win32 Configuration Manager error code. The following values may be returned: 0 This device is working properly. 1 This device is not configured correctly. 2 Windows cannot load the driver for this device. 3 The driver for this device might be corrupted, or your system may be running low on memory or other resources. 4 This device is not working properly. One of its drivers or your registry might be corrupted. 5 The driver for this device needs a resource that Windows cannot manage. 6 The boot configuration for this device conflicts with other devices. 7 Cannot filter. 8 The driver loader for the device is missing. 9 This device is not working properly because the controlling firmware is reporting the resources for the device incorrectly. 10 This device cannot start. 11 This device failed. 12 This device cannot find enough free resources that it can use. 13 Windows cannot verify this device's resources. 14 This device cannot work properly until you restart your computer. 15 This device is not working properly because there is probably a re-enumeration problem. 16 Windows cannot identify all the resources this device uses. 17 This device is asking for an unknown resource type. 18 Reinstall the drivers for this device. 19 Your registry might be corrupted. 20 Failure using the VxD loader. 21 System failure: Try changing the driver for this device. If that does not work, see your hardware documentation. Windows is removing this device. 22 This device is disabled. 23 System failure: Try changing the driver for this device. If that doesn't work, see your hardware documentation. 24 This device is not present, is not working properly, or does not have all its drivers installed. 25 Windows is still setting up this device. 26 Windows is still setting up this device. 27 This device does not have valid log configuration. 28 The drivers for this device are not installed. 29 This device is disabled because the firmware of the device did not give it the required resources. 30 This device is using an Interrupt Request (IRQ) resource that another device is using. 31 This device is not working properly because Windows cannot load the drivers required for this device.
ConfigManagerUserConfigBooleanIndicates whether the device is using a user-defined configuration.
CreationClassNameStringCreationClassName indicates the name of the class or the subclass used in the creation of an instance. When used with the other key properties of this class, this property allows all instances of this class and its subclasses to be uniquely identified.
DefaultBlockSizeUInt64Default block size, in bytes, for this device.
DescriptionStringThe Description property provides a textual description of the object.
DeviceIDStringThe DeviceID property contains a string uniquely identifying the disk drive with other devices on the system.
ErrorClearedBooleanErrorCleared is a boolean property indicating that the error reported in LastErrorCode property is now cleared.
ErrorDescriptionStringErrorDescription is a free-form string supplying more information about the error recorded in LastErrorCode property, and information on any corrective actions that may be taken.
ErrorMethodologyStringErrorMethodology is a free-form string describing the type(s) of error detection and correction supported by this device.
IndexUInt32The Index property indicates the physical drive number of the given drive. This member is filled by Get Drive Map Info. A value of 0xFF indicates that the given drive does not map to a physical drive. Example: 1
InstallDateDateTimeThe InstallDate property is datetime value indicating when the object was installed. A lack of a value does not indicate that the object is not installed.
InterfaceTypeStringThe InterfaceType property indicates the interface type of physical disk drive. Example: SCSI
LastErrorCodeUInt32LastErrorCode captures the last error code reported by the logical device.
ManufacturerStringThe Manufacturer property indicates the name of the disk drive manufacturer. Example: Seagate
MaxBlockSizeUInt64Maximum block size, in bytes, for media accessed by this device.
MaxMediaSizeUInt64Maximum size, in Kbytes, of media supported by this device. KBytes is interpreted as the number of bytes multiplied by 1000 (NOT the number of bytes multiplied by 1024).
MediaLoadedBooleanThe MediaLoaded property determines whether the media for a disk drive is loaded. For fixed disk drives, this property will always be TRUE Values: TRUE or FALSE. If TRUE, the media is loaded.
MediaTypeStringThe MediaType property is the type of media used or accessed by this device. Example: Removable media
MinBlockSizeUInt64Minimum block size, in bytes, for media accessed by this device.
ModelStringThe Model property indicates the manufacturer's model number of the disk drive. Example: ST32171W
NameStringThe Name property defines the label by which the object is known. When subclassed, the Name property can be overridden to be a Key property.
NeedsCleaningBooleanBoolean indicating that the media access device needs cleaning. Whether manual or automatic cleaning is possible is indicated in the Capabilities array property.
NumberOfMediaSupportedUInt32When the media access device supports multiple individual media, this property defines the maximum number which can be supported or inserted.
PartitionsUInt32The Partitions property indicates the number of partitions on this physical disk drive that are recognized by the operating system. Example: 2
PNPDeviceIDStringIndicates the Win32 Plug and Play device ID of the logical device. Example: *PNP030b
PowerManagementCapabilitiesUInt16Indicates the specific power-related capabilities of the logical device. The array values, 0="Unknown", 1="Not Supported" and 2="Disabled" are self-explanatory. The value, 3="Enabled" indicates that the power management features are currently enabled but the exact feature set is unknown or the information is unavailable. "Power Saving Modes Entered Automatically" (4) describes that a device can change its power state based on usage or other criteria. "Power State Settable" (5) indicates that the SetPowerState method is supported. "Power Cycling Supported" (6) indicates that the SetPowerState method can be invoked with the PowerState input variable set to 5 ("Power Cycle"). "Timed Power On Supported" (7) indicates that the SetPowerState method can be invoked with the PowerState input variable set to 5 ("Power Cycle") and the Time parameter set to a specific date and time, or interval, for power-on.
PowerManagementSupportedBooleanBoolean indicating that the Device can be power managed - ie, put into a power save state. This boolean does not indicate that power management features are currently enabled, or if enabled, what features are supported. Refer to the PowerManagementCapabilities array for this information. If this boolean is false, the integer value 1, for the string, "Not Supported", should be the only entry in the PowerManagementCapabilities array.
SCSIBusUInt32The SCSIBus property indicates the SCSI bus number of the disk drive. Example: 0
SCSILogicalUnitUInt16The SCSILogicalUnit property indicates the SCSI logical unit number (LUN) of the disk drive. Example: 0
SCSIPortUInt16The SCSIPort property indicates the SCSI port number of the disk drive. Example: 0
SCSITargetIdUInt16The SCSITargetId property indicates the SCSI ID number of the disk drive. Example: 0
SectorsPerTrackUInt32The SectorsPerTrack property indicates the number of sectors in each track for this physical disk drive. Example: 63
SignatureUInt32The Signature property is used to identify a disk. It can be used to identify a shared resource.
SizeUInt64The Size property indicates the size of the disk drive. It is calculated by multiplying the total number of cylinders, tracks in each cylinder, sectors in each track, and bytes in each sector.
StatusStringThe Status property is a string indicating the current status of the object. Various operational and non-operational statuses can be defined. Operational statuses are "OK", "Degraded" and "Pred Fail". "Pred Fail" indicates that an element may be functioning properly but predicting a failure in the near future. An example is a SMART-enabled hard drive. Non-operational statuses can also be specified. These are "Error", "Starting", "Stopping" and "Service". The latter, "Service", could apply during mirror-resilvering of a disk, reload of a user permissions list, or other administrative work. Not all such work is on-line, yet the managed element is neither "OK" nor in one of the other states.
StatusInfoUInt16StatusInfo is a string indicating whether the logical device is in an enabled (value = 3), disabled (value = 4) or some other (1) or unknown (2) state. If this property does not apply to the logical device, the value, 5 ("Not Applicable"), should be used.
SystemCreationClassNameStringThe scoping System's CreationClassName.
SystemNameStringThe scoping System's Name.
TotalCylindersUInt64The TotalCylinders property indicates the total number of cylinders on the physical disk drive. Note: the value for this property is obtained through extended functions of BIOS interrupt 13h. The value may be inaccurate if the drive uses a translation scheme to support high capacity disk sizes. Consult the manufacturer for accurate drive specifications. Example: 657
TotalHeadsUInt32The TotalHeads property indicates the total number of heads on the disk drive. Note: the value for this property is obtained through extended functions of BIOS interrupt 13h. The value may be inaccurate if the drive uses a translation scheme to support high capacity disk sizes. Consult the manufacturer for accurate drive specifications.
TotalSectorsUInt64The TotalSectors property indicates the total number of sectors on the physical disk drive. Note: the value for this property is obtained through extended functions of BIOS interrupt 13h. The value may be inaccurate if the drive uses a translation scheme to support high capacity disk sizes. Consult the manufacturer for accurate drive specifications. Example: 2649024
TotalTracksUInt64The TotalTracks property indicates the total number of tracks on the physical disk drive. Note: the value for this property is obtained through extended functions of BIOS interrupt 13h. The value may be inaccurate if the drive uses a translation scheme to support high capacity disk sizes. Consult the manufacturer for accurate drive specifications. Example: 42048
TracksPerCylinderUInt32The TracksPerCylinder property indicates the number of tracks in each cylinder on the physical disk drive. Note: the value for this property is obtained through extended functions of BIOS interrupt 13h. The value may be inaccurate if the drive uses a translation scheme to support high capacity disk sizes. Consult the manufacturer for accurate drive specifications. Example: 64
SAMPLE DATA INSTANCE
   [LOCALE(1033): ToInstance Amended]
   instance of Win32_DiskDrive
   {
    BytesPerSector = 512;
    Capabilities = {3, 4};
    Caption = "Virtual HD";
    ConfigManagerErrorCode = 0;
    ConfigManagerUserConfig = FALSE;
    CreationClassName = "Win32_DiskDrive";
    Description = "Disk drive";
    DeviceID = "\\\\.\\PHYSICALDRIVE0";
    Index = 0;
    InterfaceType = "IDE";
    Manufacturer = "(Standard disk drives)";
    MediaLoaded = TRUE;
    MediaType = "Fixed hard disk media";
    Model = "Virtual HD";
    Name = "\\\\.\\PHYSICALDRIVE0";
    Partitions = 2;
    PNPDeviceID = "IDE\\DISKVIRTUAL_HD______________________________1.1.0___\\5&35DC7040&0&0.0.0";
    SCSIBus = 0;
    SCSILogicalUnit = 0;
    SCSIPort = 0;
    SCSITargetId = 0;
    SectorsPerTrack = 63;
    Signature = 865153936;
    Size = "85896599040";
    Status = "OK";
    SystemCreationClassName = "Win32_ComputerSystem";
    SystemName = "SCCM01";
    TotalCylinders = "10443";
    TotalHeads = 255;
    TotalSectors = "167766795";
    TotalTracks = "2662965";
    TracksPerCylinder = 255;
   };