Total
0

Have you lost your Windows 10 or Windows 7 license key? Is it time for your to reinstall your operating system and you can’t do it, because you can’t find your Windows License key? Follow the teps below to easily recover it from your system.

  1. Create a text file
  2. Open the text file with a notepad app
  3. Paste the following code into the notepad app

Copy everything below this line

———————————————————————

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

——————————————————————–

4. Save the text file

5. Rename the text file’s txt extension to vbs and press enter on your keyboard

6. Run the file and you will see your Windows license key

You are welcome. Hit the notification icon on the right corner to get notified when I post the next tech article!

Total
0

Related Posts

Leave a Reply

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