Friday, August 10, 2018

Quering Computer's Serial Number

A computer's serial number may be printed on the back of the computer. However, it is inconvenient to locate it while the computer is on. We can query a computer's serial number using a command while the computer is on.

On Windows:

wmic bios get serialnumber

On Linux:

sudo lshw


  1. An alternative is 'sudo /usr/sbin/dmidecode -s system-serial-number' as lshw may not be available on older systems. Plus, using dmidecode you can get just the serial number.

  2. Really impressive post. I read it whole and going to share it with my social circules. I enjoyed your article and planning to rewrite it on my own blog.
    Packers And Movers in Chennai