Computing
Visual Basic Scripting
VB Script - Read Remote Registry Key
Visual Basic Scripting
VB Script - Read Remote Registry Key
Search




hits.Login
purpleender
41467
Newmarket
Bumder
Jock
Gonna get High till the day I die! Reality is an illusion that occurs due to lack of resin.
VB Script - Read Remote Registry Key
Dim Computername, strKeyPath, StrValueName
const HKEY_LOCAL_MACHINE = &H80000002
ComputerName = Inputbox("Please Enter the Computer Name to Check:")
Set WshShellReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & ComputerName & "\root\default:StdRegProv")
strKeyPath = "Software\Microsoft\Windows\CurrentVersion\RunOnceEx\001"
strValueName = "StartBuildUpdate"
WshShellReg.GetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,dwValue
If DwValue "" Then
MSGBOX "The Build Update Registry Hook has been applied to this machine.", 0, "REGISTRY HOOK APPLIED"
Else
MSGBOX "The Startup Registry Hook has not been applied to this machine.", 0, "REGISTRY HOOK NOT APPLIED"
End If


