The key retrieved using this method could either be the auto-generated generic Windows 10 key (for systems upgraded from Windows 7 or 8 under digital entitlement). Important: Note that the following method simply decodes the DigitalProductId registry value to get the retail product key. Most OEM-provided devices designed to run Windows 8 or later will have a firmware-embedded key. If the output is blank, the device does not have a firmware embedded activation key.
If the device has a firmware-embedded activation key, it will be displayed in the output. This happens if the device doesn’t have an embedded activation/product key. In some systems, the above commands would output the caption OA3xOriginalProductKey and blank rows beneath, showing no product key. Or, if you’re using PowerShell, run this command from an admin PowerShell window to know the product key: (Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey Note that you’ll need to run the above command from an elevated/admin Command Prompt window. This method retrieves the activation key stored in the UEFI/BIOS of your computer. wmic path softwarelicensingservice get OA3xOriginalProductKey Use the following WMI command-line to fix the product key of your Windows installation. View Windows 10 Product Key Method 1: Using WMI command-line or PowerShell