Vbscript that scans for a certain name of a drive, instead of drive letters and copies files to that usb drive name 2 Get serial number of all hard disks and partitions in it. Soo wmic diskdrive get serialnumber produces the output that i need, but i have 6 different drives and it doesnt tell me which serial number belongs to which drive?? – BugWhisperer May 25 at 2:27 Perhaps you can have a look to the model WMIC DISKDRIVE GET Name,SerialNumber,model – JPBlanc May 27 at 8:44. The Name will give you the physical drive number that is the same disk number in Disk Management (diskmgmt.msc) to help the ID drives. Option 2: Find Serial Number in Powershell. Step 1: Open Windows Powershell. Step 2: Enter the command below into PowerShell, and press Enter. Get-WMIObject win32physicalmedia Format-List Tag,SerialNumber.
If you are looking to find BIOS serial number from CMD, then wmic bios is the command you would need. This command works on any Windows version to get you the serial number.
Sometimes you need to quickly find the interface through which your storage is connected inside your PC, and its serial number and a set of other properties. With a single console command you can retrieve a lot of information about your disk drive. Let's see how it can be done.
RECOMMENDED: Click here to fix Windows errors and optimize system performance
There is a special WMIC command which utilizes Windows Management Instrumentation (WMI) to provide information about all storage devices you have installed in Windows. It works in all modern Windows versions including Windows 10. You can use it as follows.
- Open a new instance of the command prompt.
- Type or copy-paste the following command:
It will give you information about the storage devices you have. This is usually not visible without third party tools.
In my case, the output is as follows:The full list of properties that 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 at the following MSDN page: Win32_DiskDrive.
WMIC is a really useful tool to perform WMI queries in Windows. Here are a few more examples of such queries:
- Get all network adapter details in Windows 10 with this command.
That's it.
RECOMMENDED: Click here to fix Windows errors and optimize system performance
In Windows 10, you can see aserial number for the hard disk installed in your PC using the command line. If you need to print it out or just view your hard drive details without restarting your PC or using a third party tool, it can be done with a single command.
RECOMMENDED: Click here to fix Windows errors and optimize system performance
A serial number is a unique number assigned to the hardware by its manufacturer. It is used for identification and inventory purposes. A serial number allows the manufacturer to identify a product and get additional information about it. It may be required for replacement, updating firmware, or for checking compatibility with other hardware.
Usually, the serial number is labeled on the drive's case.
However, it is required that you disassemble your PC to see it. Here is how to see it with built-in Windows 10 tools.
To find Hard Disk Serial Number in Windows 10, do the following.
- Open an elevated command prompt.
- Type or copy-paste the following command:
wmic diskdrive get Name, Manufacturer, Model, InterfaceType, MediaType, SerialNumber
. - In the output, you'll see the model, name, and serial number listed for the installed hard drives.
The command above will give you information about the storage devices you have. This is usually not visible without third party tools.
The full list of properties that 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 at the following MSDN page: Win32_DiskDrive.
WMIC is a really useful tool to perform WMI queries in Windows. Here are a few more examples of such queries:
- Get all network adapter details in Windows 10 with this command.
Wmic Commands To Get Serial Number
Another option is PowerShell. It can work as a wrapper for the mentioned Win32_DiskDrive WMI object.
Find Hard Disk Serial Number With PowerShell
- Open PowerShell.
- Type or copy-paste the following command:
Get-WMIObject win32_physicalmedia | Format-List Tag,SerialNumber
. - The Tag value will give you the physical drive number that matches the disk number in Disk Management to help with your drive identification.
That's it.
Hp Wmic Get Serial Number
RECOMMENDED: Click here to fix Windows errors and optimize system performance