How to Find Window 10 Product Key using the Windows Command Prompt

Windows is the most Popular Operating System which provides high Graphics themes and High Resolution Screen. To use Windows Operating System in PC it need a product key to Run in PC. If you need that Product Key then Follow the Steps. I am using the Latest Window 10. In Window 10, how to find Product key using the Cmd. I found two working solution to find the Product Key of Windows 10 using the Command Prompt and Registry Method.

Find Window 10 Product Key Using the Command Prompt

To Find your Product Key using the Command Prompt.

Firstly Open the Command Prompt Run as administrator. To do this type “cmd” in the search box. Then the Command Prompt appears in the search box. Right-Click on the cmd and select “Run as administrator“.

If asked for Window account password type the password of your Window. Now your Window’s Command Prompt Opened. Now copy the Following text and paste in the Command prompt :

wmic path softwarelicensingservice get OA3xOriginalProductKey

Now the 25-digit product key appears on your screen

Command prompt Product key code

This is a Legal Method of the Microsoft Corporations. This method show the product key stored in your computer BIOS and UEFI . In simple words, it show the original Product key with your computer came. If you have installed windows with a different product key then it show different from the current key. This is the Quick way to find the Product key of Window 10 using the Command Prompt.

Find your Windows 10 Product Key Using the Registry Method

To Find the Product key in Window 10 using the Registry Method follow the Given steps.

  1. Firstly, create a notepad file by right-clicking anywhere on the Desktop, hovering over “New” button and Click on the “Text Document” from the menu.
Registry Method

2. Copy and Paste the Following Code in the Notepad File :

Set WshShell = CreateObject("WScript.Shell")
MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"))

Function ConvertToKey(Key)
Const KeyOffset = 52
i = 28
Cur = 0
x = 14
Cur = Cur * 256
Cur = Key(x + KeyOffset) + Cur
Key(x + KeyOffset) = (Cur \ 24) And 255
Cur = Cur Mod 24
x = x -1
Loop While x >= 0
i = i -1
KeyOutput = Mid(Chars, Cur + 1, 1) & 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 Function

3. Next, Click on the “File” tab and Select “Save as“.

Click on the Save as Button

Now the File Explorer appears and name the file as “productkey.vbs

Once you entered the file name, a new icon appears on the desktop named “productkey“.

product key

Now you are able to see the Product key of your window 10 using the Registry Method.

Our Previous Posts :

How to Fix High Ram and CPU usage in Window 10 System

How to Prevent File Copying Stuck at 5 seconds Remaining

How to Run Android Apps In Your Pc

8 Hidden Features in Window 10 which you have to know

What is AI (Artificial Intelligence) ? How it Impact’s in Modern World

Our Social Media Platforms:

Like us on Facebook:

Instagram :

Pinterest :

Twitter :

1 thought on “How to Find Window 10 Product Key using the Windows Command Prompt”

  1. Pingback: Window 10 New Tips and Tricks – Window 10 Hacks of 2020 – Issue Is Real

Leave a Reply

Your email address will not be published. Required fields are marked *