Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1) To go ahead with this method, you need to boot into your Windows computer. Now, using a simple VBScript–some of you might have seen it on Microsoft forums–you can read all the binary gibberish written in Windows Registry. This script translates the Registry values into a readable format.
- 2) So, just copy and paste the following script in a Notepad window and save its as productkey.vbs by choosing the “All Files” option in “Save as type.”
- 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
- 3) After saving this file, just click on it and a new popup window will show your Windows product key in the registry. You can copy or note this down somewhere to use it later.
Advertisement
Add Comment
Please, Sign In to add comment