Extract your Windows OEM key from BIOS using Linux


If you’re on Linux and need to find your Windows product key stored in the BIOS, follow these straightforward steps.

Prerequisites

  • Linux system with sudo access
  • Internet connection (optional, for installation)

Step 1: Install Required Package

sudo apt-get install chntpw

Step 3: Locate Windows Product Key

strings /sys/firmware/acpi/tables/MSDM | tail -1

Example return: 4AC4P-*****-*****-G6G8Q-*****

If you receive an error message like strings: '/sys/firmware/acpi/tables/MSDM': No such file, it means no OEM key was found in your BIOS.


If a key is displayed, note it down for future use. Otherwise, proceed knowing that no key was found.

That’s it! You’ve successfully retrieved your Windows OEM key from BIOS using Linux. Keep your key safe for any future Windows installations or activations.