- The tools above are fine for changing the serial number of a volume/partition but trying to change the serial number of the actual hard drive itself is a whole different story. These are hard coded into the hard drive itself and cannot simply be edited or altered using a piece of software.
- Diskette drives, hard drives and CD-ROM drives are all block devices. But that's not a problem when using lsblk as you can simply add more columns e.g type (device type) and/or tran (device transport type) etc: lsblk -nodeps -no name,serial,type,tran.
- I the command 'WMIC diskdrive get serialnumber' to return the serial number to a variable in the script but for some reason the serial numbers didn't match up, upon closer inspection the serial number being returned by the script and the one printed on the label are the same characters just ever other character is reversed (i.e.
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.
Both the serial number and specific volume serial numbers are shown for each drive. Another way is to use the drive's properties from within Windows. Hit the WIN+E keyboard shortcut to open the list of hard drives (if you're using Windows 10, also choose This PC from the left).
RECOMMENDED: Click here to fix Windows errors and optimize system performance
![Serial Serial](/uploads/1/2/6/2/126265565/166303579.jpg)
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.
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.
Hard Drive Serial Number Windows 7
RECOMMENDED: Click here to fix Windows errors and optimize system performance
The volume label of a drive isn't usually an important piece of information, but it can be when executing certain commands from the Command Prompt.
For example, the format command requires that you enter the volume label of a drive you're formatting, assuming it has one. The convert command does the same. If you don't know the volume label, you can't complete the task.
The volume serial number is less important but could be a valuable piece of information in some specific circumstances.
Follow these quick and easy steps to find the volume label or volume serial number from the Command Prompt.
The steps described below apply to Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.
Free Hard Disk Serial Number Changer
How to Find a Drive's Volume Label or Serial Number From the Command Prompt
- In Windows 10 and Windows 8, you can find Command Prompt by right-clicking the Start button. In older versions of Windows, either search the Start menu for cmd or find Command Prompt in the Accessories folder of the Start menu.A regular Command Prompt is fine; you don't need to open an elevated one.If Windows isn't accessible, Command Prompt it is also available from Safe Mode in all versions of Windows, from Advanced Startup Options in Windows 10 and Windows 8, and from System Recovery Options in Windows 7 and Windows Vista.
- At the prompt, execute the vol command as shown below, and then press Enter:Change c to whatever drive you want to find the volume label or serial number for. For example, if you want to find this information for the E drive, type vol e: instead.
- Immediately below the prompt, you should see two lines similar to the following:As you can see, the volume label for the C drive is System and the volume serial number is C1F3-A79E.If you instead see Volume in drive C has no label then it means exactly that. Volume labels are optional and your drive happens to not have one.
- Now that you've found the volume label or volume serial number, you can close Command Prompt if you're finished or you can continue executing additional commands.
Other Ways to Find the Volume Label or Serial Number
Using the Command Prompt is the fastest way to find this information but there are other methods, too.
One is to use a free system information tool like the free Speccy program. With that program, in particular, find the Storage section and pick the hard drive you want the information for. Both the serial number and specific volume serial numbers are shown for each drive.
Another way is to use the drive's properties from within Windows. Hit the WIN+Ekeyboard shortcut to open the list of hard drives (if you're using Windows 10, also choose This PC from the left).
Next to each drive is the respective volume label. Right-click one (or tap-and-hold) and choose Properties to see it there, too, and to change the drive's volume label.