How to Get a Product Key Using Command Prompt

The easiest way to find your Windows 11 product key is to use the Command Prompt.

Open the Windows 11 Command Prompt by selecting the search icon (the magnifying glass) and searching for CMD in the Windows search bar. Then select the corresponding result. Input or copy and paste the following command: wmic path SoftwareLicensingService get OA3xOriginalProductKey Press the Enter key on your keyboard. Command Prompt will then display your product key.

Finding the Product Key Using the Windows 11 PowerShell

If you prefer, you can use Windows 11 PowerShell to find your product key.

wmic path SoftwareLicensingService get OA3xOriginalProductKey

Open Windows PowerShell by pressing Windows key+X and selecting Windows PowerShell (Admin). Input the following command: powershell “(Get-WmiObject -query ‘select * from SoftwareLicensingService’). OA3xOriginalProductKey” Press the Enter key on your keyboard. It will then display your Windows 11 product key.

How to Find Your Product Key In the Windows Registry

You can also use the Windows registry to find your Windows 11 product key.

powershell “(Get-WmiObject -query ‘select * from SoftwareLicensingService’).OA3xOriginalProductKey”

Press the Windows key+R to open the Run menu, and search for Regedit and press OK to open the Windows Registry. Input the following into the Registry navigation bar: ComputerHKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionSoftwareProtectionPlatform Press Enter. Your product key will be visible next to the BackupProductKey field.

ComputerHKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionSoftwareProtectionPlatform