How To Retrieve Windows 10 Product Key from a Linux System
You’ve got a new Windows 10 machine and like me, swiftly replaced it with a Linux OS - I run ArchLinux on mine, and for whatever reason, you want to retrieve your Windows 10 Product KEY.
Microsoft incorporates the use of a digital license to activate Windows 10 so you don’t need to remember or know the Product Key for the Windows 10 installation that came with your system. That being said, for record purposes, there’s a way to retrieve your Windows 10 Product Key from your Linux system, you need the hexdump program (provided by util-linux on Archlinux).
On my Dell Laptop, I retrieved my product key by running:
sudo hexdump -s 56 -e '"MSDM key: " /29 "%s\n"' /sys/firmware/acpi/tables/MSDM
Output will look like the one below (without the X’s):
MSDM key: RXXXX-7XXX-MXXX-YXXXX-MXXXX