Skip to content

Instantly share code, notes, and snippets.

View SebiAi's full-sized avatar
💭
Keep calm and inhale my code!

SebiAi

💭
Keep calm and inhale my code!
View GitHub Profile
@SebiAi
SebiAi / GetWindowsProductKey.vbs
Created May 15, 2021 19:18 — forked from craigtp/GetWindowsProductKey.vbs
Retrieve Windows Product Key
Option Explicit
Dim objshell,path,DigitalID, Result
Set objshell = CreateObject("WScript.Shell")
'Set registry key path
Path = "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\"
'Registry key value
DigitalID = objshell.RegRead(Path & "DigitalProductId")
Dim ProductName,ProductID,ProductKey,ProductData
'Get ProductName, ProductID, ProductKey