How to Find Windows 11 Product Key

Last Updated : 5 Dec, 2025

A Windows product key is a 25-character code used to activate your operating system. If you’re installing or reinstalling Windows 11, you may need this key to complete the setup especially if your device didn’t come with digital activation. A Windows 11 product key helps verify that your copy of Windows is genuine and prevents software piracy. Once activated:

  • You can access Microsoft Store apps
  • You receive Windows updates
  • You can get customer support

If you upgraded from an already activated Windows 10/8 system, your device may use a digital license, meaning you might not need to enter the key again.

Method 1: Find Windows 11 Product Key Using Command Prompt

You can utilize the Command Prompt to find your Windows 11 product key by following these steps:

Step 1:

  • Press Win + S and type CMD.
  • Open Command Prompt.

Open-Command-Prompt

Step 2:

  • In the Command Prompt window enter the command below:
wmic path softwarelicensingservice get OA3xOriginalProductKey

How-to-Get-Your-Product-Key-in-Command-Prompt

  • Your product key will appear on the screen.

Method 2: Find Windows 11 Product Key Using Registry Editor

To locate your Windows 11 product key for Windows 11 in the registry, follow these steps:

Step 1:

  • Press Win + S and type Registry Editor.

Step 2:

  • Navigate to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform

Step 3:

  • Look for BackupProductKeyDefault.
  • Double-click it to view your key (may be encrypted).

How-to-Find-Your-Product-Key-in-the-Windows-Registry-Editor

Method 3: Find Windows 11 Product Key Using PowerShell

You can use PowerShell to locate your Windows 11 product key following these steps:

Step 1:

  • Press Win + S and search for PowerShell.

Open-Windows-PowerShell

Step 2:

  • Run the following command:
(Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey

How-to-Find-the-Windows-11-Product-Key-With-PowerShell

Method 4: Find Windows 11 Product Key Using ShowKeyPlus

Step 1:

  • Open Microsoft Store.
  • Search ShowKeyPlus.

How-to-Find-Windows-11-Product-Key-Using-ShowKeyPlus

Step 2: click Get/Install.

How-to-Find-Windows-11-Product-Key-Using-ShowKeyPlus-1

Step 3:

  • Launch the app.

Step 4:

  • It will display your Installed Key, OEM Key, and other license details.

How-to-Find-Windows-11-Product-Key-Using-ShowKeyPlus-2

Method 5: Find Windows 11 Product Key Using a VBS Script

A VBS script is a file that contains Visual Basic code which can be executed by Windows. You can create and run a VBS script to find your Windows 11 product key by following these steps:

Step 1:

  • Open Notepad.
  • Paste this script:
Set WshShell = CreateObject("WScript.Shell")
MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"))
Function ConvertToKey(Key)
Const KeyOffset = 52
i = 28
Chars = "BCDFGHJKMPQRTVWXY2346789"
Do
Cur = 0
x = 14
Do
Cur = Cur * 256
Cur = Key(x + KeyOffset) + Cur
Key(x + KeyOffset) = (Cur \ 24) And 255
Cur = Cur Mod 24
x = x -1
Loop While x >= 0
i = i -1
KeyOutput = Mid(Chars, Cur + 1, 1) & KeyOutput
If (((29 - i) Mod 6) = 0) And (i <> -1) Then
i = i -1
KeyOutput = "-" & KeyOutput
End If
Loop While i >= 0
ConvertToKey = KeyOutput
End Function

Step 2:

  • Save the file by press Ctrl + S.

Step 3:

  • Save the file as productkey.vbs on your desktop or any other location.

Step 4:

  • Double-click on the productkey.vbs file to run it.

Step 5:

  • A pop-up box will show your product key.

Also Read:

Comment