The Win32_DiskDrive class has these properties.
Availability and status of the device.
Running or Full Power
The device is known to be in a power save mode, but its exact status is unknown.
The device is in a power save state but still functioning, and may exhibit degraded performance.
The device is not functioning, but could be brought to full power quickly.
The device is in a warning state, though also in a power save mode.
The disk drive is unavailable.
Number of bytes in each sector for the physical disk drive.
Example: 512
Array of capabilities of the media access device. For example, the device may support random access (3), removable media (7), and automatic cleaning (9).
Supports Removable Media
Supports Dual-Sided Media
Ejection Prior to Drive Dismount Not Required
List of 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.
Short description of the object.
The name of the compression algorithm or one of the following values.
Windows Configuration Manager error code.
Device is working properly.
Device is not configured correctly.
The driver for this device might be corrupted, or your system may be running low on memory or other resources. (3)
Driver for this device might be corrupted, or the system may be low on memory or other resources.
This device is not working properly. One of its drivers or your registry might be corrupted. (4)
Device is not working properly. One of its drivers or the registry might be corrupted.
The driver for this device needs a resource that Windows cannot manage. (5)
Driver for the device requires a resource that Windows cannot manage.
The boot configuration for this device conflicts with other devices. (6)
Boot configuration for the device conflicts with other devices.
Driver loader for the device is missing.
This device is not working properly because the controlling firmware is reporting the resources for the device incorrectly. (9)
Device is not working properly. The controlling firmware is incorrectly reporting the resources for the device.
Device cannot start.
Device failed.
This device cannot find enough free resources that it can use. (12)
Device cannot find enough free resources to use.
Windows cannot verify the device's resources.
This device cannot work properly until you restart your computer. (14)
Device cannot work properly until the computer is restarted.
This device is not working properly because there is probably a re-enumeration problem. (15)
Device is not working properly due to a possible re-enumeration problem.
Windows cannot identify all the resources this device uses. (16)
Windows cannot identify all of the resources that the device uses.
Device is requesting an unknown resource type.
Device drivers must be reinstalled.
Registry might be corrupted.
System failure: Try changing the driver for this device. If that does not work, see your hardware documentation. Windows is removing this device. (21)
System failure. If changing the device driver is ineffective, see the hardware documentation. Windows is removing the device.
Device is disabled.
System failure: Try changing the driver for this device. If that doesn't work, see your hardware documentation. (23)
System failure. If changing the device driver is ineffective, see the hardware documentation.
This device is not present, is not working properly, or does not have all its drivers installed. (24)
Device is not present, not working properly, or does not have all of its drivers installed.
Windows is still setting up the device.
Windows is still setting up the device.
Device does not have valid log configuration.
Device drivers are not installed.
This device is disabled because the firmware of the device did not give it the required resources. (29)
Device is disabled. The device firmware did not provide the required resources.
This device is using an Interrupt Request (IRQ) resource that another device is using. (30)
Device is using an IRQ resource that another device is using.
This device is not working properly because Windows cannot load the drivers required for this device. (31)
Device is not working properly. Windows cannot load the required device drivers.
If True, the device is using a user-defined configuration.
Name of the first concrete class to appear in the inheritance chain used in the creation of an instance. When used with the other key properties of the class, the property allows all instances of this class and its subclasses to be uniquely identified.
Default block size, in bytes, for this device.
Description of the object.
Unique identifier of the disk drive with other devices on the system.
If True, the error reported in LastErrorCode is now cleared.
More information about the error recorded in LastErrorCode, and information on any corrective actions that may be taken.
Type of error detection and correction supported by this device.
Revision for the disk drive firmware that is assigned by the manufacturer.
control code. A value of 0xffffffff indicates that the given drive does not map to a physical drive.
Example: 1
Date and time the object was installed. This property does not need a value to indicate that the object is installed.
Interface type of physical disk drive.
The values are:
SCSI
HDC
IDE
USB
1394
Last error code reported by the logical device.
Name of the disk drive manufacturer.
Example: "Seagate"
Maximum block size, in bytes, for media accessed by this device.
Maximum media size, in kilobytes, of media supported by this device.
If True, the media for a disk drive is loaded, which means that the device has a readable file system and is accessible. For fixed disk drives, this property will always be TRUE.
Type of media used or accessed by this device.
Possible values are:
External hard disk media
Removable media ("Removable media other than floppy")
Fixed hard disk ("Fixed hard disk media")
Unknown ("Format is unknown")
Minimum block size, in bytes, for media accessed by this device.
Manufacturer's model number of the disk drive.
Example: "ST32171W"
Label by which the object is known. When subclassed, the property can be overridden to be a key property.
If True, the media access device needs cleaning. Whether manual or automatic cleaning is possible is indicated in the Capabilities property.
Maximum number of media which can be supported or inserted (when the media access device supports multiple individual media).
Number of partitions on this physical disk drive that are recognized by the operating system.
Example: 2
Windows Plug and Play device identifier of the logical device.
Example: "*PNP030b"
Array of the specific power-related capabilities of a logical device.
This property is inherited from CIM_LogicalDevice.
Power-related capacities are not supported for this device.
The power management features are currently enabled but the exact feature set is unknown or the information is unavailable.
The device can change its power state based on usage or other criteria.
Timed Power-On Supported
If True, the device can be power-managed (can be put into suspend mode, and so on). The property does not indicate that power management features are currently enabled, only that the logical device is capable of power management.
SCSI bus number of the disk drive.
Example: 0
SCSI logical unit number (LUN) of the disk drive.
Example: 0
SCSI port number of the disk drive.
Example: 0
SCSI identifier number of the disk drive.
Example: 0
Number of sectors in each track for this physical disk drive.
Example: 63
Number allocated by the manufacturer to identify the physical media.
Example: WD-WM3493798728
Disk identification. This property can be used to identify a shared resource.
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.
Current status of the object. Various operational and nonoperational statuses can be defined. Operational statuses include: "OK", "Degraded", and "Pred Fail" (an element, such as a SMART-enabled hard disk drive, may be functioning properly but predicting a failure in the near future). Nonoperational statuses include: "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 online, yet the managed element is neither "OK" nor in one of the other states.
Values are:
OK ("OK")
Error ("Error")
Degraded ("Degraded")
Unknown ("Unknown")
Pred Fail ("Pred Fail")
Starting ("Starting")
Stopping ("Stopping")
Service ("Service")
Stressed ("Stressed")
NonRecover ("NonRecover")
No Contact ("No Contact")
Lost Comm ("Lost Comm")
State of the logical device. If this property does not apply to the logical device, the value 5 (Not Applicable) should be used.
Other (1)
Unknown (2)
Enabled (3)
Disabled (4)
Not Applicable (5)
Value of the scoping computer's CreationClassName property.
Name of the scoping system.
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
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.
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
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
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