Thursday, 4 April 2019

windows - How to get hard drive serial number from command line?


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



Answer



Try this command



vol C:



this will get the volume serial number given to it by windows.



wmic diskdrive get serialnumber



this gets the manufacturers serial number of the hard drive.


No comments:

Post a Comment

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...