

Click Yes to run the PowerShell as Administrator. Step 4: The User Account Control (UAC) window will prompt. Step 3: Right-click on the Windows PowerShell and click on the Run as administrator option from the context menu to open elevated PowerShell. Step 2: Type powershell in the Search box. Method 2: Use PowerShell to execute SoftwareLicensingService class This command will only works if you are using product key instead of digital license. This is because your Windows copy is activated with a digital license instead of firmware-embedded activation key. In the event that product key not displaying or showing blank result.

Step 6: The Windows product key will display below OA3xOriginalProductKey.

Wmic path SoftwareLicensingService get OA3xOriginalProductKey Step 5: Type or copy-paste the following command into the elevated command prompt and press Enter: Click Yes to run the Windows Command Prompt as Administrator. Step 3: Click the Run as administrator to open elevated Command Prompt. Step 1: Click on the Search icon in the Taskbar to open Search box. Reference Method 1: Use command prompt to execute SoftwareLicensingService class Method 4: Execute Get-ProductKey function with PowerShell script Method 3: Retrieve DigitalProductId Registry Key using VBScript

Method 1: Use command prompt to execute SoftwareLicensingService class If you are unable to find the Windows key, use this article will show you simple steps, commands and script to find and retrieve Windows 11 product key. The Windows product key is actually stored in the registry which can be retrieved using command. Windows Product key is important if you want to activate the Windows, even though you already have an activated copy of Windows but you still need the product key in case you need to reinstall the Windows.
