« TrackpointНаглядное пособие по основным алгоритмам сортировки »

Query laptop serial number from the command line

7.12.11

Permalink 11:31:54 am, by aleko Email , 132 words   English (US) utf-8
Categories: Техническая, Компьютерра

Query laptop serial number from the command line

There are few cases in life when you need to know you laptop serial nuber and you can't just lift your device up and look what is written on the bottom. As to me, I was quite suprised to find out that HP desined the s/n under the battery, so to see it I must shut down the computer and take off the battery (which was impossible due to there were important calculations running since some time).

After few tries I have found than for Windows (XP) it is quite simple:

  1. start the command line (Start->Run, type "cmd", enter)
  2. in the command prompt type
    wmic bios get serialnumber

for Linux it is not much harder:

  1. start the command line in the super user mode
  2. in the command prompt type
    dmidecode -s system-serial-number