Skip to content

Instantly share code, notes, and snippets.

@greew
Created September 27, 2021 08:09
Show Gist options
  • Save greew/ea0bd77d84d0df9bf11cd37a8b3bd362 to your computer and use it in GitHub Desktop.
Save greew/ea0bd77d84d0df9bf11cd37a8b3bd362 to your computer and use it in GitHub Desktop.
Retrieve Windows Product Key from BIOS on Linux

My computer originally came with Windows 10 preinstalled.

As I prefer to run Linux, but still need to use Windows for some tools, I have installed Windows via VirtualBox.

When I install Windows in VirtualBox, it asks me for the Product Key for activation. As this is injected into the BIOS and the virtual machine doesn't have access to the BIOS, I need to fetch it from the BIOS and enter it manually.

It can be fetched with the following command:

sudo strings /sys/firmware/acpi/tables/MSDM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment