A Windows product key consists of 25 alphanumeric characters and looks something like this: XXXXX-XXXXX-XXXXX-XXXXX-XXXXX. Every OS comes with a unique product key. Similarly, Microsoft uses a product key to ensure that you’re using a genuine, licensed version of Windows.
You may need the product key for several reasons. It can be to activate your Windows OS, do a clean reinstall of the OS, or transfer the license to another computer.
There are several ways you can find your Windows 11 product key.
Using the Command Prompt
- Press the Windows key. Search for cmd. Click on Open to go to the Command Prompt.
You’ll now see the Command Prompt.
- Enter the following command in the Command Prompt:
wmic path softwarelicensingservice get OA3xOriginalProductKey
- Press Enter after you type the command. You will automatically see your product key.
Using a third-party application
- Press the Windows key and search for the Microsoft Store. Click Open to open the Microsoft Store.
- In the Microsoft Store, search for ShowKeyPlus. Click on the ShowKeyPlus app to download it.
- Click on Get to download and install the ShowKeyPlus app.
- Install the app on your computer. Once it’s done, click on Open to launch the app.
- In the ShowKeyPlus app, the product key is displayed as an “Installed Key”. You can also find other product information in this window.
Get Windows 11 Product Key using a Script
- Press the Windows key and type notepad in the search bar. Click on Open to launch the Notepad app.
- You’ll now see an untitled notepad.
- Copy and paste the following code into the untitled notepad file:
Set WshShell = CreateObject("WScript.Shell") MsgBox ConvertToKey(WshShell.RegRead("HKLMSOFTWAREMicrosoftWindows NTCurrentVersionDigitalProductId"))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
- Click on the File option and select Save As.
- Name the file as productkey.vs to save it as a “.vbs” file. In “Save as type,” select All Files. Once you’re done, click on Save.
- Go to the saved file’s location – by default, this will be your “Downloads” folder.
- Double-click on the file to run it. Once you double-click, you can see a prompt with your device’s product key. After you note down the product key, click on OK to close the prompt.
Other methods to find your Windows 11 product key
There are other ways to check your product key, both digitally and physically, such as:
- Check your computer. Some Original Equipment Manufacturers or OEMs provide the product key in a label that comes with your laptop or PC. You can usually find this label at the bottom.
- Check your receipts. You can check for receipts or email confirmation for your product purchase. If you bought it online, check your purchase history or email confirmations. The purchase history or receipts might also contain the product key.
- Check your product box. If you got your Windows 11 product key from a physical brick-and-mortar store, check the product packaging for your product key.