I've been trying to come up with a poller that will show the current virus pattern version in the registry. Using that to alert if the version doesn't change after (possibly) 72 hours of polling.
I've managed to come up with a WMI registry poll but the value is not being displayed. Any help would be appreciated.
const HKEY_CURRENT_USER = &H80000001
strComputer = "."
Set oReg=GetObject( _
"winmgmts:{impersonationLevel=impersonate}!\\" &_
strComputer & "\root\default:StdRegProv")
strKeyPath = "Misc."
strValueName = "PatternVer"
oReg.GetDWORDValue _
HKEY_LOCAL_MACHINE,strKeyPath,strValueName,dwValue
WScript.Echo "Pattern Version: " & dwValue
wscript.Echo "Statistic: 0"