I'm having a problem with a part of my scipt.
I'm checking for a managed insatll of NAV Corp edition. I check for either of the server names otherwise I right a file and email.
All NT 4.0 machines work fine but most 2000 Pro machines will send an email although the registry key and value exist. Here is my script. Any ideas?

Chris

$AV ="$HKLM\SOFTWARE\Intel\LANDesk\VirusProtect6\CurrentVersion"
$AV=ReadValue ("$AV","Parent")
if $AV = Thor
goto "end"
$AV=ReadValue ("$AV","Parent")
if $AV = Tyr
goto "end"
else
open(1, "c:\2kmanage.log", 5) ; Create a temp file
writeline(1, "@FULLNAME does not have a managed Norton Installation" +chr(13) +chr(10) +chr(13) +chr(10))
writeline(1, "Workstation = @wksta" +chr(13) +chr(10))
writeline(1, "Operating System Kernel = " + $kernel +chr(13) +chr(10))
writeline(1, "Operating System = " + $system +chr(13) +chr(10))
writeline(1, "Operating System Subtype= " + $flavor +chr(13) +chr(10) +chr(10))
writeline(1, "Operating System Service Pack Level = " + $Svcpack +chr(13) +chr(10) +chr(10))
writeline(1, "Current time is @time" +chr(13) +chr(10)) ; Insert all this information in the file
close(1) ; and mail the file to me for investigation with blat.exe
shell \\freya\blat\2kmanage.bat
sleep 1
del "c:\2kmanage.log" ; clean up
cls
use y: /d
if ingroup ( "AV_Tyr" )
copy "@LDRIVE"+"\tyr\vphome\grc.dat" "c:\Documents and Settings\All Users\Application Data\Symantec\Norton AntiVirus Corporate Edition\7.5"
if ingroup ( "AV_Thor" )
copy "@LDRIVE"+"\thor\vphome\grc.dat" "c:\Documents and Settings\All Users\Application Data\Symantec\Norton AntiVirus Corporate Edition\7.5"
goto "end"
endif
:end
exit