Windows Logo

If you're looking for your Windows 10 product cardinal, you can find it by inbound a quick command in the Command Prompt. Here'due south how—plus a keen little trick for finding the product key using a Windows Registry method.

Find Your Windows x Product Fundamental Using the Control Prompt

To find your Windows 10 production primal using the Command Prompt, you'll need to open up 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 Ambassador" from the window that appears. If prompted, enter your Windows account password.

Run as admin option

Once open, copy and paste the post-obit control and then hit the Enter fundamental:

wmic path softwarelicensingservice get OA3xOriginalProductKey

The 25-digit product fundamental will and so appear.

Product key in Command prompt

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

That'due south all there is to it. This way is quick, but this isn't probable a code you'll remember very easily. If yous'd like a faster way of accessing your product fundamental in the future, you can use the Windows Registry method instead.

Detect Your Windows 10 Product Key Using a Windows Registry Method

Update: This method is all over the spider web, just it doesn't seem to return a real usable key on the latest version of Windows 10. (For example, this script in Microsoft's TechNet gallery works differently, merely also grabs output from "DigitalProductId" in the registry.) As of July 2020, we recommend you skip this section and use the to 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.

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

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(Central) Const KeyOffset = 52 i = 28 Chars = "BCDFGHJKMPQRTVWXY2346789" Do Cur = 0 ten = 14 Do Cur = Cur * 256 Cur = Key(x + KeyOffset) + Cur Key(10 + KeyOffset) = (Cur \ 24) And 255 Cur = Cur Mod 24 x = x -one Loop While x >= 0 i = i -1 KeyOutput = Mid(Chars, Cur + 1, 1) & KeyOutput If (((29 - i) Mod half dozen) = 0) And (i <> -one) Then i = i -one KeyOutput = "-" & KeyOutput Finish If Loop While i >= 0 ConvertToKey = KeyOutput Finish Function

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

save as in notepad

In File Explorer, set up the "Save As Type" dropdown to "All Files" and give your file a proper name. You can use any proper name, but it has to be a .vbs file. Y'all can name it something similar: productkey.vbs

save file type as vbs file

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

You can now view your Windows 10 production key at any fourth dimension past opening the new file.

product key