Advertisement
Guest User

Windows 10 key shower

a guest
Jul 31st, 2015
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Somehow this couldn't be posted originally because of a stupid security measure...
  2.  
  3. Anyways this is how to find out your key safely, so you can use it for future fresh installs of Windows 10 when you change hardware etc.
  4.  
  5. Copy and paste the visual basic script below and then save it to a text file and save as xxxxxxx.vbs (xxxxx can be whatever name you wish - also make sure folder options show common file types or it will stay a text file). And then run it.
  6.  
  7.  
  8. Set WshShell = CreateObject("WScript.Shell")
  9. MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"))
  10.  
  11. Function ConvertToKey(Key)
  12. Const KeyOffset = 52
  13. i = 28
  14. Chars = "BCDFGHJKMPQRTVWXY2346789"
  15. Do
  16. Cur = 0
  17. x = 14
  18. Do
  19. Cur = Cur * 256
  20. Cur = Key(x + KeyOffset) + Cur
  21. Key(x + KeyOffset) = (Cur \ 24) And 255
  22. Cur = Cur Mod 24
  23. x = x -1
  24. Loop While x >= 0
  25. i = i -1
  26. KeyOutput = Mid(Chars, Cur + 1, 1) & KeyOutput
  27. If (((29 - i) Mod 6) = 0) And (i <> -1) Then
  28. i = i -1
  29. KeyOutput = "-" & KeyOutput
  30. End If
  31. Loop While i >= 0
  32. ConvertToKey = KeyOutput
  33. End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement