Are you searching for your Windows 11 product key? You’re at the right place!
Depending on your purchase, you either have the product key or a digital license to your copy of Windows 11.
A digital license is linked to your Microsoft account. You mostly get one if you have upgraded from earlier genuine Windows versions, purchased an upgrade (ex. home to pro) from Microsoft, bought Windows 11 from the Microsoft Store app, etc.
In other cases where you have gone to an authorized retailer or Microsoft store, you get a product key instead.
If you don’t have the digital license to Windows 11, you’ll need a product key for clean installs or reactivation after significant hardware changes.
But can’t you have it already by just navigating to System>About and checking the Product ID?
The answer is no. Some might confuse it with product key, but both are entirely different. The product ID depends on your license: retail, enterprise, educational, etc.
Similarly, the product key also differs from the Device ID.
So now you know some basics, let’s dive in and see how to take hold of your Windows 11 product key.
Command Prompt or Powershell
This is the best way to find the key without any hassles.
Type cmd in the Windows taskbar, search to open the command prompt. Alternatively, open Windows Run by ⊞+R, type cmd, and hit enter.
Now copy-paste the following code in Command Prompt to get the product key:
wmic path softwareLicensingService get OA3xOriginalProductKey
Similarly, we can use a different command to have the same result in Powershell, which is a lot like Command Prompt but more powerful.
First, type Powershell in the Windows Run and click enter. Or you can use the taskbar search to open it.
Subsequently, paste this command and hit enter to get your Windows 11 product key.
powershell "(Get-WmiObject -query ‘select * from SoftwareLicensingService’).OA3xOriginalProductKey"
Want some geeky way to do this–create a VB Script file to have the product key.
While it sounds super technical, we’ll copy-paste some code into a text file, change its extension, and run the script.
Start with creating a .txt file, and let’s name it win11key.
Now paste this code into the text file and save the changes.
Set WshShell = CreateObject("WScript.Shell")
MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"))
Const KeyOffset = 52
i = 28
Chars = "BCDFGHJKMPQRTVWXY2346789"
Cur = 0
x = 14
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
Loop While i >= 0
ConvertToKey = KeyOutput
Lastly, rename the extension from .txt to .vbs, and run the script with a double-click.
Another way to have the keys is to discover them inside the Windows registry.
First, you need to open the registry editor by typing regedit in the Run.