Windows Logo

If you're looking for your Windows 10 product key, you tin notice information technology by entering a quick command in the Command Prompt. Hither's how—plus a cracking little trick for finding the product key using a Windows Registry method.

Discover Your Windows ten Product Primal Using the Control Prompt

To discover your Windows ten production key using the Control Prompt, you'll demand to open the control line application with authoritative privileges. To do this, type "cmd" in the Windows search bar.

type cmd in search bar

Command Prompt will appear in the search results. Right-click it and select "Run As Administrator" from the window that appears. If prompted, enter your Windows business relationship password.

Run as admin option

Once open up, copy and paste the following command and then hitting the Enter primal:

wmic path softwarelicensingservice get OA3xOriginalProductKey

The 25-digit product fundamental volition so announced.

Product key in Command prompt

Note: This method displays the Windows product key stored in your reckoner's BIOS or UEFI firmware. In other words, it shows the original Windows key your computer came with. If you've installed Windows with a different key since then (or acquired a digital license), information technology will be dissimilar from the current key in use on your PC. If you lot want the current key in employ on your PC, NirSoft's ProduKey is a good graphical tool for finding information technology.

That's all there is to it. This way is quick, but this isn't likely a code you'll recall very easily. If you lot'd like a faster way of accessing your product primal in the future, y'all can use the Windows Registry method instead.

Find Your Windows 10 Product Fundamental Using a Windows Registry Method

Update: This method is all over the web, but it doesn't seem to return a existent usable cardinal on the latest version of Windows x. (For example, this script in Microsoft'due south TechNet gallery works differently, but likewise grabs output from "DigitalProductId" in the registry.) As of July 2020, we recommend y'all skip this section and utilise the higher up method instead.

The Windows Registry tip was initially posted by a user (whose account is no longer active) in the Microsoft forum.

Commencement, open Notepad past correct-clicking anywhere on the desktop, hovering over "New," and then selecting "Text Document" from the menu.

Open a new text file

Re-create and paste this code into Notepad:

Fix WshShell = CreateObject("WScript.Shell") MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"))  Function ConvertToKey(Fundamental) Const KeyOffset = 52 i = 28 Chars = "BCDFGHJKMPQRTVWXY2346789" Practice Cur = 0 x = 14 Practice Cur = Cur * 256 Cur = Fundamental(10 + KeyOffset) + Cur Fundamental(x + KeyOffset) = (Cur \ 24) And 255 Cur = Cur Mod 24 x = x -i Loop While x >= 0 i = i -1 KeyOutput = Mid(Chars, Cur + 1, 1) & KeyOutput If (((29 - i) Mod 6) = 0) And (i <> -1) So i = i -1 KeyOutput = "-" & KeyOutput End If Loop While i >= 0 ConvertToKey = KeyOutput Terminate Function

Next, click the "File" tab and select "Salve As."

save as in notepad

In File Explorer, set the "Relieve Equally Type" dropdown to "All Files" and give your file a name. Yous can use any name, but information technology has to be a .vbs file. You tin can name it something like: productkey.vbs

save file type as vbs file

Once you've entered a file name, save the file.

You tin now view your Windows x product key at whatever fourth dimension by opening the new file.

product key