How to view your windows product key useing the notepad

💢How to view your windows product key useing the notepad.


step 1 -- open notepad software in your computer.Get a new file.

step 2 -- copy this code and past it your 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

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 -- save the notepad file.

               file extension is .vbs

                EX ~ productkey.vbs

step 4 -- Go to your save location and open it.


Comment your comments in the comment section.Join our telegram channel and facebook page.

Comments

Popular posts from this blog

Device manager open කිරීමට run command භාවිතා කරමු. Open Device Manager useing run command.

How to open cd rom useing notepad application.

Turn on gaming mode in your computer.