Linux
  • Register

It is my good habit to always remove the pre-installed Windows from my computer and replace it with Linux.

However, some software refuses to work without that devilish tool, so I always end up running a Windows installation in a virtual machine. And of course it wants a license key.
Considering that since Windows 8 this key is mostly stored in BIOS/EFI, it is necessary to read it somehow - and restarting the PC is not what I really want.

With no further explanation, the data can be found here:

$ ls /sys/firmware/acpi/tables
APIC BGRT BOOT data DBG2 DBGP DMAR DSDT dynamic FACP FACS FIDT FPDT HPET LPIT MCFG MSDM NHLT SLIC SSDT1 SSDT2 SSDT3 SSDT4 SSDT5 SSDT6 SSDT7 SSDT8 SSDT9 UEFI

and we are interested in the MSDM table, so it is simple:

$ sudo cat /sys/firmware/acpi/tables/MSDM
[sudo] password for user:
MSDMU�DELL CBX3 "AMI N0R5C-FP8F4-78RP8-JHVO6-GB36P

so the license key from my laptop was:

N0R5C-FP8F4-78RP8-JHVO6-GB36P

- I have changed the key in this article, for some reason, I don't need it to be shared on internet :)