How to Find Windows Product Key?

Unlike macOS, using virtually any Windows version requires purchasing (or obtaining with other methods) a valid license key. It is a long and unique set of numbers and letters that give you the right to use Windows and its full capabilities. Most of the time, users do not care about their Windows product keys. However, finding a Windows 10 product key becomes necessary when switching computers, especially custom DIY PCs. After all, no one wants to purchase a new key whenever they change a computer.

Before we show you how to find Windows 10 product key (this article also applies to Windows 11), it is worth noting that there are two types of Windows product keys for consumers. One is Retail—you get it when purchasing Windows from the Microsoft Store or on a USB drive (previously on DVD). You need to enter it manually during Windows installation. Another is OEM—an embedded key stored inside your computer’s UEFI. You do not need to enter it before installing Windows—the OS will automatically recognize and activate itself once it establishes an internet connection.

Important. Do not let other people see your Windows product key if you do not want to lose your Windows license. It is a combination you should keep in secret.

Find Windows product key

Unfortunately, Windows does not allow you to see the product key without using scripts, commands, or third-party apps. You can check the product ID in the Settings app, but it is not the product key, and you cannot activate your Windows with the product ID. Besides, you cannot get your Windows product key in Registry since it is stored in a non-user-friendly form that requires conversion. Therefore, finding a Windows 10 product key requires running a small VBS script.

  1. Open Notepad and paste the following:
    Set WshShell = CreateObject("WScript.Shell")
    
    regKey = "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\"
    
    DigitalProductId = WshShell.RegRead(regKey & "DigitalProductId")
    
    Win11ProductName = "Windows Version: " & WshShell.RegRead(regKey & "ProductName") & vbNewLine
    
    Win11ProductID = "Product ID: " & WshShell.RegRead(regKey & "ProductID") & vbNewLine
    
    Win11ProductKey = ConvertToKey(DigitalProductId)
    
    ProductKeyLabel ="Product Key: " & Win11ProductKey
    
    Win11ProductID = Win11ProductName & Win11ProductID & ProductKeyLabel
    
    MsgBox(Win11ProductID)
    
    Function ConvertToKey(regKey)
    
    Const KeyOffset = 52
    
    isWin11 = (regKey(66) \ 6) And 1
    
    regKey(66) = (regKey(66) And &HF7) Or ((isWin11 And 2) * 4)
    
    j = 24
    
    Chars = "BCDFGHJKMPQRTVWXY2346789"
    
    Do
    
    Cur = 0
    
    y = 14
    
    Do
    
    Cur = Cur * 256
    
    Cur = regKey(y + KeyOffset) + Cur
    
    regKey(y + KeyOffset) = (Cur \ 24)
    
    Cur = Cur Mod 24
    
    y = y -1
    
    Loop While y >= 0
    
    j = j -1
    
    winKeyOutput = Mid(Chars, Cur + 1, 1) & winKeyOutput
    
    Last = Cur
    
    Loop While j >= 0
    
    If (isWin11 = 1) Then
    
    keypart1 = Mid(winKeyOutput, 2, Last)
    
    insert = "N"
    
    winKeyOutput = Replace(winKeyOutput, keypart1, keypart1 & insert, 2, 1, 0)
    
    If Last = 0 Then winKeyOutput = insert & winKeyOutput
    
    End If
    
    a = Mid(winKeyOutput, 1, 5)
    
    b = Mid(winKeyOutput, 6, 5)
    
    c = Mid(winKeyOutput, 11, 5)
    
    d = Mid(winKeyOutput, 16, 5)
    
    e = Mid(winKeyOutput, 21, 5)
    
    ConvertToKey = a & "-" & b & "-" & c & "-" & d & "-" & e
    
    End Function
  2. Save the file as a .vbs object. Rename it from file.txt to file.vbs. Also, ensure you use the ANSI encoding.
    find windows product key
  3. Run the newly made script to find your Windows 10 product key. Windows will display a small dialog box with the basic information about it, including the product key.
    how to find windows 10 product key

Find Windows 10 Product Key—ShowKeyPlus App

If you want a more user-friendly method to find Windows 10 product key, use a free third-party app called ShowKeyPlus. It is an open-source application that can show your product key (and other information) in a simple and convenient UI. It also lets you retrieve a product key from a backup and change the product key.

Download the app from its GitHub repository and extract everything inside the archive. Note that you should match your platform with the corresponding app version. Use the x86 version on 32-bit Windows installation.

how to find windows product key

Run the app and you will get your Windows 10 product key in the Installed Key field.

Finally, you can check your Windows product key underneath your battery or on the bottom of your computer. If the device you use comes with Windows preinstalled, then the product key should be located on a holgraphic sticker on the device itself (or inside it if it uses a user-removable battery) or its packaging.

Leave a Reply

Your email address will not be published. Required fields are marked *