Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I wanted to get the serial number assigned by Hard disk manufacturer.

The serial number is usually printed in the hard disk. Normally to get the serial number, I have to take out the hard disk.

Is it possible to know the hard drive serial number from command prompt or in other way.

Before posting this question I have gone through this question but I am getting the error in the following screenshot:

enter image description here

share|improve this question
up vote 2 down vote accepted

CrystalDiskInfo will display this information as well as all other S.M.A.R.T. data if the computer supports it. It's free, check it out.

If this is unable to pull the serial number then I would double check your BIOS settings and make sure that you have S.M.A.R.T. enabled.

If this is not an option I'd Google the computer model specs to see if there is a BIOS update that supports it, if not then the computer is too old and you have to open the machine.

share|improve this answer

The Win32_PhysicalMedia class suggest that

wmic path win32_physicalmedia get SerialNumber

should do the trick.

However, the WMI struct holding the DiskDrive information

specifically mentions that

SerialNumber: Number allocated by the manufacturer to identify the physical media.

Windows Server 2003 and Windows XP: This property is not available.

I know of no other way to obtain it, sorry.


share|improve this answer
Thanks for answering but I am getting a blank screen – SpringLearner Jan 28 '14 at 12:53
nothing simply blank – SpringLearner Jan 28 '14 at 12:56
see this – SpringLearner Jan 28 '14 at 13:00

Press Windows Key + R



It will show details of almost everything in the system. Locate to storage and find the details.

share|improve this answer
Also on Windows XP? – Anders R. Bystrup Jan 28 '14 at 14:06
Yea. Think so. I have used it on Windows 7. – Unnikrishnan Jan 28 '14 at 14:08
Thanks for answering,+1 I did the way you suggested but the I am not getting the manufacturer serial number. – SpringLearner Jan 29 '14 at 4:21

If you can't just pull the drive out then try:

Start > Control Panel > System > Device Manager

Expand the Disk Drive and right click the HDD you want. Select Properties > Details Tab. From the drop down select Hardware IDs. It should be listed in there.

EDIT: Since it was different in device manager you could try cmd command:

wmic diskdrive get serialnumber

See if this matches.

share|improve this answer
Thanks for answering I tried your way but the number I get from device manager and the number printed on the hard drive does not match – SpringLearner Jan 28 '14 at 13:04

Use below powershell script to get the serial number of hard disk.

Get-WmiObject Win32_PhysicalMedia | Format-Table Tag, SerialNumber

share|improve this answer
Does this work on Windows XP also? – Anders R. Bystrup Jan 28 '14 at 14:07
I don't think it will work on Win XP. On XP you can use this command - wmic diskdrive get serialnumber – Calculating Machine Jan 28 '14 at 14:09
Make sure to open PowerShell as administrator. Running it in it's regular mode will not give you the correct serial number. – user383088 Oct 23 '14 at 21:01
This works fine on Windows XP (64-bit) with PowerShell 2.0 installed. And yes, it is actually possible to install PowerShell 2.0 on Windows XP 64-bit. – Peter Mortensen Jul 29 '15 at 17:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.