From the Windows NT-based (Windows XP and 7 specifically) command prompt, how can I get the serial number of a hard drive as a variable? The one I'm looking at is the serial number of the physical hard disk drive
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
|
this will get the volume serial number given to it by windows.
this gets the manufacturers serial number of the hard drive. |
|||||||
|
|
|||
|
|
|
In a batch file one approach is:
|
||||
|
|


