Windows Logo

If you're looking for your Windows 10 production key, y'all can find information technology by entering a quick command in the Command Prompt. Hither's how—plus a neat niggling trick for finding the product key using a Windows Registry method.

Notice Your Windows 10 Production Key Using the Command Prompt

To discover your Windows 10 production fundamental using the Control Prompt, you'll need to open the command line application with administrative privileges. To practise this, type "cmd" in the Windows search bar.

type cmd in search bar

Command Prompt will announced in the search results. Correct-click it and select "Run As Administrator" from the window that appears. If prompted, enter your Windows account countersign.

Run as admin option

Once open, copy and paste the post-obit command and and so hit the Enter key:

wmic path softwarelicensingservice get OA3xOriginalProductKey

The 25-digit product key will so appear.

Product key in Command prompt

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

That's all there is to information technology. This way is quick, merely this isn't likely a code you lot'll remember very easily. If yous'd like a faster way of accessing your product fundamental in the futurity, you can apply the Windows Registry method instead.

Notice Your Windows 10 Product Central Using a Windows Registry Method

Update: This method is all over the web, but it doesn't seem to return a existent usable key on the latest version of Windows 10. (For example, this script in Microsoft's TechNet gallery works differently, but besides grabs output from "DigitalProductId" in the registry.) As of July 2020, we recommend you skip this section and use the above method instead.

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

First, open Notepad by right-clicking anywhere on the desktop, hovering over "New," and and then selecting "Text Document" from the carte.

Open a new text file

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(Primal) Const KeyOffset = 52 i = 28 Chars = "BCDFGHJKMPQRTVWXY2346789" Do Cur = 0 ten = xiv Practise Cur = Cur * 256 Cur = Central(10 + KeyOffset) + Cur Central(x + KeyOffset) = (Cur \ 24) And 255 Cur = Cur Mod 24 10 = 10 -i Loop While x >= 0 i = i -1 KeyOutput = Mid(Chars, Cur + 1, i) & KeyOutput If (((29 - i) Mod 6) = 0) And (i <> -ane) Then i = i -1 KeyOutput = "-" & KeyOutput End If Loop While i >= 0 ConvertToKey = KeyOutput End Function

Next, click the "File" tab and select "Salvage Every bit."

save as in notepad

In File Explorer, set the "Save As Type" dropdown to "All Files" and requite your file a name. Yous can use whatsoever name, only it has to be a .vbs file. You can name information technology something like: productkey.vbs

save file type as vbs file

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

You lot can at present view your Windows 10 product key at any time by opening the new file.

product key