Windows Logo

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

Find Your Windows 10 Product Key Using the Command Prompt

To find your Windows ten product primal using the Control 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 information technology and select "Run Equally Ambassador" from the window that appears. If prompted, enter your Windows business relationship password.

Run as admin option

Once open, re-create and paste the following control and and so hit the Enter central:

wmic path softwarelicensingservice get OA3xOriginalProductKey

The 25-digit product key will then appear.

Product key in Command prompt

Note: This method displays the Windows production key stored in your figurer'due south 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), it will be different from the electric current central in use on your PC. If you want the electric current key in use on your PC, NirSoft's ProduKey is a adept graphical tool for finding it.

That'south all there is to information technology. This fashion is quick, only this isn't probable a code you'll remember very easily. If you'd like a faster way of accessing your product central in the time to come, y'all can use the Windows Registry method instead.

Discover Your Windows 10 Production Central Using a Windows Registry Method

Update: This method is all over the spider web, simply information technology doesn't seem to return a real usable fundamental on the latest version of Windows 10. (For example, this script in Microsoft's TechNet gallery works differently, but also 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 active) in the Microsoft forum.

First, open Notepad by correct-clicking anywhere on the desktop, hovering over "New," and so selecting "Text Document" from the menu.

Open a new text file

Re-create and paste this code into Notepad:

Ready 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 = Cardinal(x + KeyOffset) + Cur Key(10 + KeyOffset) = (Cur \ 24) And 255 Cur = Cur Modernistic 24 x = x -ane Loop While x >= 0 i = i -ane KeyOutput = Mid(Chars, Cur + one, 1) & KeyOutput If (((29 - i) Mod 6) = 0) And (i <> -ane) And so i = i -1 KeyOutput = "-" & KeyOutput Cease If Loop While i >= 0 ConvertToKey = KeyOutput Finish Function

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

save as in notepad

In File Explorer, fix the "Save As Type" dropdown to "All Files" and give your file a proper name. You tin can use whatsoever name, only it has to be a .vbs file. You can proper noun information technology something similar: productkey.vbs

save file type as vbs file

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

You can at present view your Windows ten production fundamental at whatever time by opening the new file.

product key