In Windows there is the special wmic command that can provide you with a large amount of information about your system. Today we will deal with it to get details about the disk drives of our computer.
Sometimes you have to find fast information about your storage media connected to your computer, including their serial number, make, model and a number of other properties. All this you can have with a single command from line tasks. Let's see how it can be done.
There is a special command, the WMIC, which uses Windows Management Instrumentation (WMI) to provide information about all of the storage devices installed in Windows. It works in all modern versions of Windows, including Windows 10. You can use it as follows:
Open a taskbar window and type or copy-paste the following command:
wmic diskdrive get Name, Manufacturer, Model, InterfaceType, MediaType, SerialNumber
It will return you information about your storage devices that are not usually visible without third-party tools. In our case, the results of our search were as follows:
The full list of properties you can use for the query above is as follows:
- Availability
- BytesPerSector
- Capabilities
- CapabilityDescriptions
- Caption
- CompressionMethod
- ConfigManagerErrorCode
- ConfigManagerUserConfig
- CreationClassName
- DefaultBlockSize
- Description
- DeviceID
- ErrorCleared
- ErrorDescription
- ErrorMethodology
- FirmwareRevision
- Index
- InstallDate
- InterfaceType
- LastErrorCode
- Manufacturer
- MaxBlockSize
- MaxMediaSize
- MediaLoaded
- MediaType
- MinBlockSize
- Model
- Name
- NeedsCleaning
- NumberOfMediaSupported
- Partitions
- PNPDeviceID
- PowerManagementCapabilities
- PowerManagementSupported
- SCSIBus
- SCSILogicalUnit
- SCSIPort
- SCSITargetId
- SectorsPerTrack
- SerialNumber
- Signature
- Size
- Status
- StatusInfo
- SystemCreationClassName
- SystemName
- TotalCylinders
- TotalHeads
- TotalSectors
- TotalTracks
- TracksPerCylinder
You can find their descriptions on the following MSDN page: Win32_DiskDrive.