Hello,
I am trying to list the Virus Definition Version listed in the registry using the following code:
Const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."
Set oReg=GetObject("winmgmts:\\" &_
strComputer & "\root\default:StdRegProv")
strKeyPath = "SOFTWARE\Network Associates\TVD\ViruScan Enterprise\CurrentVersion"
strValueName = "szVirDefVer"
oReg.GetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue
Wscript.Echo "The Virus Definition is: " & strValue
Trouble is, when I run it, all I get is a message saying "The Virus Definition is: " and no value.
can anyone help me with a solution?
Thanks
I am trying to list the Virus Definition Version listed in the registry using the following code:
Const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."
Set oReg=GetObject("winmgmts:\\" &_
strComputer & "\root\default:StdRegProv")
strKeyPath = "SOFTWARE\Network Associates\TVD\ViruScan Enterprise\CurrentVersion"
strValueName = "szVirDefVer"
oReg.GetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue
Wscript.Echo "The Virus Definition is: " & strValue
Trouble is, when I run it, all I get is a message saying "The Virus Definition is: " and no value.
can anyone help me with a solution?
Thanks