How to find Windows product key using — Windows Registry method
To go ahead with this method, you need to boot your Windows computer without. Now, using a simple VBcript–some of you might have seen it onMicrosoft forums–you can read all the binary gibberish written in Windows Registry. This script translates the Registry values into a readable format.
So, just copy and paste the following script in a Notepad window and save its asproductkey.vbs by choosing the “All Files” option in “Save as type”.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
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
|
After saving this file, just click on it and a new popup window will show your Windows product key. You can copy or note this down somewhere to use it later.
How to recover Windows product key using Command Prompt?
This method to recover Windows product key is very simple. All you need to do is fire up a Windows Command Prompt window with administrative purposes. To do this, search for cmd in Windows search bar and right-click to choose the elevated permissions option.
Now, type the following command in Command Prompt and hit Enter:
This step will promptly show your Windows key. Note that this method also works for OEC and Retail licenses.
How to find Windows License key using PowerShell?
To get back Windows serial key using Windows PowerShell, you need to open a new PowerShell with administrative permissions. Now, type the following commands and press Enter:
This method will now promptly show you your Windows 10, 8.1, or 7 product key.
If these methods don’t solve your problem, you need to contact Microsoft Support or your OEM for Windows activation. You can also use some third-party software to recover your license key. If you’ve got the Windows key, but you need a Windows installation media, feel free to visit our ‘legal’ Windows download guide.
Did you find this article helpful? Don’t forget to drop your feedback in the comments section below.