Read Windows key from BIOS under Linux

Picture of a windows key

Windows licences are like gold dust – valuable but volatile. Fortunately, the OEM keys or product keys acquired when purchasing the device are usually stored in the BIOS (UEFI only). The Windows product keys can also be read very easily under Linux. For example, if you want to install a virtual machine with Windows guest and do not have the Windows licence key at hand.

The Windows product key stored in the BIOS can be found in the ACPI tables under MSDM

~$ sudo xxd /sys/firmware/acpi/tables/MSDM
00000000: 4d53 444d 5500 0000 035d 4c45 4e4f 564f   MSDMU....]LENOVO
00000010: 4342 2d30 3120 2020 0100 0000 4143 5049   CB-01   ....ACPI
00000020: 0000 0400 0100 0000 0000 0000 0100 0000   ................
00000030: 0000 0000 1000 0000 9632 3945 472d 4e32   ........HERE-CAN
00000040: 6e3b 512d 4a2b 3a51 542d 33b3 3433 2d4b   YOUR-WINDOWS-KEY
00000050: 5632 59b3 4436 13d4 1678 4598 2112 3278   BE- FOUND

For all those who are now thinking: „He must have forgotten to change the hex values, I’ll steal his key“ I can only say: „He didn’t“.

----- Comments -----

Comment by Robyn on 14 Aug 17 01:36

---

Danke sehr, ganz unkompliziert. Besser gehts nicht!!!

Comment by Tom on 13 Jan 18 12:41

---

Auch von mir herzlichen Dank! Auch wenn du diesen Blog bereits vergessen haben solltest ;D

Comment by Philipp Hangg on 13 Jan 18 18:10

---

Vergessen habe ich ihn noch nicht … eher verdrängt :)

Comment by Detlef on 29 Jan 18 05:48

---

Bei mir stehen bei 040 nur nullen

Comment by André on 11 Apr 18 22:29

---

1A Tipp! Vielen herzlichen Dank. Gruß André

Comment by Holli on 15 Apr 18 10:45

---

Hi Philipp, viele, vielen, vielen Dank! Ich befinde mich gerade in einer xubuntu live session, um den Key einer vom automatischen Update zerstoerten Windows 10 installation (urspruenglich 8.1) auszulesen. Da bin ich auf Deine Anleitung gestossen. Hat super funktioniert. Das Notebook ist uebrigens ein Dell Inspiron 15 3000 Series, falls es irgend jemand interessiert.

GOD bless, Holli

Comment by clockwork on 23 Apr 18 11:55

---

wonderbra! einfacher gehts net. vielen dank für die info :-D

Your comment



You can send your comment by e-mail here. The email will be created automatically. Your e-mail address will not be published. Due to the GDPR I ask you to read and agree to the privacy policy.


Privacy policy

Name

Comment