If you’re looking for your Windows 10 product key, you can find it by entering a quick command in the Command Prompt.
Find Your Windows 10 Product Key Using the Command Prompt
To find your Windows 10 product key using the Command Prompt, you will have to follow the steps below;
- Open the command line application with administrative privileges. To do this, type “cmd” or “Command Prompt” in the Windows search bar. Command Prompt will appear in the search results. Select “Run As Administrator” from the window that appears. If prompted, enter your Windows account password.
- Once open, copy and paste the following command and then hit the Enter key:
wmic path softwarelicensingservice get OA3xOriginalProductKey
The 25-digit product key will then appear.
This method displays the Windows product key stored in your computer’s BIOS or UEFI firmware. In other words, it shows the original Windows key your computer came with. Properly it is called an “OEM Key.” If you’ve installed Windows with a different key since then (or acquired a digital license), it will be different from the current key in use on your PC. You’ll have to use the next method if you want to find that key.
Find Your Windows 10 Product Key Using a Windows Registry Method
The Windows Registry tip was initially posted by a user (whose account is no longer active) in the Microsoft forum.
- First, open Notepad by right-clicking anywhere on the desktop, hovering over “New,” and then selecting “Text Document” from the menu.
- Copy and paste this code into Notepad:
Set WshShell = CreateObject("WScript.Shell")MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"))Function ConvertToKey(Key)Const KeyOffset = 52i = 28Chars = "BCDFGHJKMPQRTVWXY2346789"DoCur = 0x = 14DoCur = Cur * 256Cur = Key(x + KeyOffset) + CurKey(x + KeyOffset) = (Cur \ 24) And 255Cur = Cur Mod 24x = x -1Loop While x >= 0i = i -1KeyOutput = Mid(Chars, Cur + 1, 1) & KeyOutputIf (((29 - i) Mod 6) = 0) And (i <> -1) Theni = i -1KeyOutput = "-" & KeyOutputEnd IfLoop While i >= 0ConvertToKey = KeyOutputEnd Function
- Next, click the “File” tab and select “Save As.”
- In File Explorer, set the “Save As Type” dropdown to “All Files” and give your file a name. You can use any name, but it has to be a .vbs file. You can name it something like:
- Once you’ve entered a file name, save the file.
- You can now view your product key at any time by opening the new file.