A batch file to retrieve the serial number of your PC

Ask a question

Issue


I would like to retrieve the serial number of a PC in a text file via a small .bat script.
I know that the command "wmic csproduct" gives the serial, but how to implement it?

Solution

  • wmic csproduct get identifyingnumber > c:\serial_number.txt 

Thanks to barnabe0057

USB Flash Drive Not Detected in Windows
Windows - Numeric keys not working (Numpad)