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 comment:

  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.

    ReplyDelete