How to find Windows 10 Product Key using Command Prompt

How to find Windows 10 Product Key using Command Prompt

If you are looking the ways to find Windows 10 product key, here is the guide. The easiest method to find the Windows product key is by using the command prompt. Let’s see how you can find Windows 10 Product Key using Command Prompt and I have also mentioned here another easy method.

Find Windows 10 Product Key using Command Prompt

Microsoft provides product key with Windows 10 operating system. You can find the product key easily by using command prompt( admin).

Step 1: Type cmd in the search-bar and Right Click on it.

Command prompt admin

Step 2: Write the command below or copy-paste it and hit Enter.

wmic path softwarelicensingservice get OA3xOriginalProductKey
Find Windows 10 product key using Command Prompt

You will see the 25 digit Windows 10 product key. Note down it or copy-paste to anywhere. The code you will see it stored to BIOS or UEFI Firmware, if you activated your Windows 10 with a different key, you can’t find the product key used at that time.

Let’s see another method to find Windows 10 Product Key

Use Windows registry to find Windows 10 Product Key

Step 1: Right-click on the desktop, go to New and select Text Document.

Open Text document to find Windows product key

Step 2: Copy-paste the code below and click on File menu.

Set 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
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

Step 3: Select Save As and keep the file name to “productkey.vbs“, and select save as type to All files from the dropdown menu.

How to find product key in Windows 10

Step 3: You will see the file type has changed. Now Double Click on it or right-click on it and select open. A new window will open showing the product key on your Windows 10 computer.

Product key finder

That’s the method to find Windows 10 Product Key. I found the previous method is more efficient to find product keys on any version of Windows.

Stay updated and protected. If you face any difficulties with your device, don’t hesitate to comment below.

You may also like to read:

Sharing is Caring

Similar Posts

Leave a Reply

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