7

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

6 Answers 6

3

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.

0
8

The Win32_PhysicalMedia class suggest that

wmic path win32_physicalmedia get SerialNumber

should do the trick.

However, the WMI struct holding the DiskDrive information

http://msdn.microsoft.com/en-us/library/aa394132%28v=vs.85%29.aspx

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.

Cheers,

3
5

Press Windows Key + R

type

msinfo32.exe

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

3
  • Also on Windows XP? Jan 28, 2014 at 14:06
  • Yea. Think so. I have used it on Windows 7. Jan 28, 2014 at 14:08
  • 1
    Thanks for answering,+1 I did the way you suggested but the I am not getting the manufacturer serial number. Jan 29, 2014 at 4:21
3

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

Get-WmiObject Win32_PhysicalMedia | Format-Table Tag, SerialNumber

4
  • Does this work on Windows XP also? Jan 28, 2014 at 14:07
  • I don't think it will work on Win XP. On XP you can use this command - wmic diskdrive get serialnumber
    – Roxx
    Jan 28, 2014 at 14:09
  • 1
    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, 2014 at 21:01
  • 1
    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. Jul 29, 2015 at 17:16
2

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.

1
  • 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 Jan 28, 2014 at 13:04
0

It availaible in WindowsXP, you need use command

wmic diskdrive get pnpdeviceid

you receive something like this

KINGSTON SV300S37A60G IDE\DISKKINGSTON_SV300S37A60G___________________580ABBF0\3035323042363237423436304335393820202020

where last long number (3035323042363237423436304335393820202020) it's serial number in Hex.
After you getting this number, try to use this program or python-script to view correct SN.
Thanks.

2
  • When you say "It availaible in WindowsXP" did you really mean "It" or did you mean another or different word in its place? Jul 13, 2017 at 15:30
  • Another word, "This availaible in WindowsXP".
    – Max
    Jul 14, 2017 at 7:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .