How to Find Windows 11 Product Key

How to Find Windows 11 Product Key

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

  1. Press the Windows key. Search for cmd. Click on Open to go to the Command Prompt.
    Open Command Prompt
    Click on Open to launch Command Prompt.

    You’ll now see the Command Prompt.

    Launched Command Prompt
    Launched Command Prompt.

  2. Enter the following command in the Command Prompt:
    wmic path softwarelicensingservice get OA3xOriginalProductKey

    Type command in Command Prompt
    Enter the command in Command Prompt.

  3. Press Enter after you type the command. You will automatically see your product key.

    Product Key in Command Prompt
    Press Enter to see your Product Key in Command Prompt.

Using a third-party application

  1. Press the Windows key and search for the Microsoft Store. Click Open to open the Microsoft Store.

    Open Microsoft Store
    Click Open to go to the Microsoft Store.

  2. In the Microsoft Store, search for ShowKeyPlus. Click on the ShowKeyPlus app to download it.

    Search ShowKeyPlus in Microsoft Store
    Search for ShowKeyPlus and click on the app to download it.

  3. Click on Get to download and install the ShowKeyPlus app.

    Install ShowKeyPlus
    Select Get to download and install ShowKeyPlus.

  4. Install the app on your computer. Once it’s done, click on Open to launch the app.

    Launch ShowKeyPlus
    Click on Open to launch the app.

  5. In the ShowKeyPlus app, the product key is displayed as an “Installed Key”. You can also find other product information in this window.
    Product Key in ShowKeyPlus
    You can see the Product Key within the Installed Key section.

Get Windows 11 Product Key using a Script

  1. Press the Windows key and type notepad in the search bar. Click on Open to launch the Notepad app.

    Open Notepad
    Select Open to launch Notepad.

  2. You’ll now see an untitled notepad.

    Untitled notepad
    An untitled notepad opens.

  3. 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
    

    Pasted code in notepad file
    Copy and paste the code into the notepad.

  4. Click on the File option and select Save As.

    Click Save As
    Click File and select Save as.

  5. 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.

    Rename file and save
    Enter the File name and type. Click on Save.

  6. Go to the saved file’s location – by default, this will be your “Downloads” folder.

    Locate the productkey.vbs file
    Locate the saved file.

  7. 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.

    Product key prompt via the vbs file
    Double-click the file and select OK to view the product key.

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.

Erik is a full-time product quality engineer at the IBM who has a passion for teaching others (and always learning) about technology. He has a Bachelor's degree in Computer Science and Engineering from Eindhoven University of Technology. Erik is the chief editor for Windows, Linux and coding tutorials.

Leave a Comment