HomeHow ToFind information about your disk drives with the wmic command

Find information about your disk drives with the wmic command

In Windows, there is a special command called wmic that can provide you with a large amount of information about your system. Today, we will be using it to extract details about your computer's disk drives.

Windows 10 tweaks wmic

Sometimes you need to quickly find information about your storage devices connected to your computer, including their serial numbers, brand, model, and a host of other properties. You can get all of this with a single command from the taskbar. Let's see how it can be done.

There is a special command, WMIC, that uses Windows Management Instrumentation (WMI) to provide information about all 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 information about the storage devices you have that are not usually visible without third-party tools. In our case, the results of our search were as follows:

%cf%83%cf%84%ce%b9%ce%b3%ce%bc%ce%b9%cf%8c%cf%84%cf%85%cf%80%ce%bf-%ce%bf%ce%b8%cf%8c%ce%bd%ce%b7%cf%82-58

The full list of properties you can use for the above query 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
  • SCSI Bus
  • SCSILogicalUnit
  • SCSIPort
  • SCSITargetId
  • SectorsPerTrack
  • Serial Number
  • Signature
  • Size
  • Status
  • StatusInfo
  • SystemCreationClassName
  • SystemName
  • TotalCylinders
  • TotalHeads
  • TotalSectors
  • TotalTracks
  • TracksPerCylinder

You can find their descriptions on the following MSDN page: Win32_DiskDrive.

📧
Subscribe to the SecNews Newsletter

The most important Security & Technology news in your Inbox.

SecNews
SecNewshttps://www.secnews.gr
In a world without fences and walls, who needs Gates and Windows

SEARCH

FOLLOW US

📧
Newsletter SecNews
The most important Security & Technology news in your inbox.

LIVE NEWS