Skip to content

Instantly share code, notes, and snippets.

View keybase.md

Keybase proof

I hereby claim:

  • I am bs5 on github.
  • I am hariel (https://keybase.io/hariel) on keybase.
  • I have a public key ASC_XQLe3SX9ka0BAUo6HtSC4AxUDZ2JXKd5TS5se09dfAo

To claim this, I am signing this object:

@BS5
BS5 / get-win7-productkey.vbs
Created Oct 22, 2015 — forked from eyecatchup/get-win7-productkey.vbs
VBS Script to get the Windows(R) 7 Product Key from a PC's registry.
View get-win7-productkey.vbs
' VBS Script to get the Windows(R) 7 Product Key from a PC's registry.
'
' Save the VBScript as "getWin7Key.vbs" somewhere on your Windows7 PC.
' Now, when you double-click the local script file an alertbox pops up
' displaying the product key stored in the machine's Windows registry.
Set WshShell = WScript.CreateObject("WScript.Shell")
KeyPath = "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"
MsgBox ExtractKey(WshShell.RegRead(KeyPath))