On a Linux system, you can use the dmidecode
command to display information about the hardware and firmware of a computer. This includes the original equipment manufacturer (OEM) product key for Windows 10/11.
To display the OEM product key for Windows 10/11, you can use the following command:
sudo dmidecode -s system-serial-number
This will display the OEM product key for Windows 10/11, if it is available in the system's hardware and firmware.
Note that the OEM product key is usually only available if the system came with Windows pre-installed by the manufacturer. If the system was installed with a retail version of Windows or a different operating system, the OEM product key may not be available.