Windows Logo

If you're looking for your Windows 10 production primal, you can discover it by entering a quick command in the Control Prompt. Here'south how—plus a neat little trick for finding the product key using a Windows Registry method.

Find Your Windows 10 Product Key Using the Command Prompt

To observe your Windows x production central using the Command Prompt, you'll need to open the control line awarding with administrative 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 account password.

Run as admin option

Once open up, re-create and paste the following command and then hit the Enter key:

wmic path softwarelicensingservice get OA3xOriginalProductKey

The 25-digit product key will so announced.

Product key in Command prompt

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

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

Find Your Windows x Product Key Using a Windows Registry Method

Update: This method is all over the web, but it doesn't seem to render 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.) Equally of July 2020, we recommend you lot 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 correct-clicking anywhere on the desktop, hovering over "New," and so selecting "Text Certificate" from the menu.

Open a new text file

Copy and paste this code into Notepad:

Gear up WshShell = CreateObject("WScript.Shell") MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"))  Function ConvertToKey(Key) Const KeyOffset = 52 i = 28 Chars = "BCDFGHJKMPQRTVWXY2346789" Do Cur = 0 x = 14 Do Cur = Cur * 256 Cur = Key(x + KeyOffset) + Cur Fundamental(ten + KeyOffset) = (Cur \ 24) And 255 Cur = Cur Mod 24 x = x -i Loop While ten >= 0 i = i -1 KeyOutput = Mid(Chars, Cur + ane, ane) & KeyOutput If (((29 - i) Modernistic half dozen) = 0) And (i <> -1) Then i = i -1 KeyOutput = "-" & KeyOutput Cease If Loop While i >= 0 ConvertToKey = KeyOutput Stop Office

Adjacent, click the "File" tab and select "Save As."

save as in notepad

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

save file type as vbs file

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

Yous can now view your Windows x production key at any time by opening the new file.

product key


The above article may contain affiliate links, which help back up How-To Geek.