I also check my winnt machines and log if they do not have InoculateIT installed like so...$inocpath = $hiddenshare + "\" + $logdir + "\" + $inoclist
$inocquery = Exist("$inocpath")
$inockey = existkey( "HKEY_LOCAL_MACHINE\SOFTWARE\ComputerAssociates\InoculateIT\CurrentVersion\DOMAIN" )
if $inocquery = "0"
OPEN (1,"$inocpath",5)
Writeline(1,"NT Computers Needing InoculateIT Installed" + Chr(13) + Chr(10))
Writeline (1,"." + Chr(13) + Chr(10))
CLOSE(1)
endif
if $inockey <> "0"
if OPEN (1,"$inocpath",2) = 0
$readline=Readline(1)
WHILE @error = 0
if $readline <> "\\" + @wksta
$writeinoc="1"
else ;$readline = "\\" + @wksta
$writeinoc="0"
endif
$readline=Readline(1)
LOOP
endif
CLOSE (1)
if $writeinoc = "1"
OPEN (1,"$inocpath",4)
WRITELINE (1,"\\" + @wksta + Chr(13) + Chr(10))
CLOSE(1)
endif
endif
------------------
Chris Fricke
Clackamas County