Windows Logo

If yous're looking for your Windows ten production key, you can find it by entering a quick command in the Control Prompt. Here'southward how—plus a peachy piffling trick for finding the product central using a Windows Registry method.

Discover Your Windows 10 Product Key Using the Control Prompt

To find your Windows 10 production fundamental using the Command Prompt, y'all'll need to open the command line application 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 As Administrator" from the window that appears. If prompted, enter your Windows business relationship countersign.

Run as admin option

Once open, copy and paste the following command so hit the Enter key:

wmic path softwarelicensingservice become OA3xOriginalProductKey

The 25-digit product key will then appear.

Product key in Command prompt

Note: This method displays the Windows product key stored in your computer's BIOS or UEFI firmware. In other words, information technology shows the original Windows cardinal your computer came with. If yous've installed Windows with a different cardinal since then (or caused a digital license), information technology volition be dissimilar from the current cardinal in employ on your PC. If y'all want the electric current fundamental in utilise on your PC, NirSoft's ProduKey is a good graphical tool for finding it.

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

Find Your Windows 10 Product Key Using a Windows Registry Method

Update: This method is all over the web, but information technology doesn't seem to return a existent usable key on the latest version of Windows x. (For example, this script in Microsoft's TechNet gallery works differently, merely too grabs output from "DigitalProductId" in the registry.) As of July 2020, nosotros recommend you skip this section and apply the in a higher place method instead.

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

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

Open a new text file

Re-create and paste this code into Notepad:

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

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

save as in notepad

In File Explorer, set the "Save Equally Type" dropdown to "All Files" and give your file a name. You can utilize any proper noun, but it has to be a .vbs file. You can proper name it something similar: productkey.vbs

save file type as vbs file

In one case you've entered a file name, save the file.

You can now view your Windows ten product key at any fourth dimension by opening the new file.

product key