#69703 - 2002-09-09 11:23 PM
Re: Norton Script
|
NTDOC
Administrator
   
Registered: 2000-07-28
Posts: 11634
Loc: Space
|
Or.. if a search does not turn one up, here is one you can work on and modify or gleen more information from.
code:
IF @INWIN = 1 $SRVR = ReadValue("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ProductOptions", "ProductType") IF $SRVR<>"WinNT" ; System is not a Workstation so assume it is a Server RETURN ENDIF ENDIF IF $NoNavWarn <> 0 $nul = MESSAGEBOX("Unable to locate the Norton AntiVirus program on this system. Please contact the Helpdesk to have the program installed or checked for problems with a previous installation. ", "Norton AntiVirus Program Update", 16) RETURN ENDIF
IF EXIST($NavHome+"\GRC.DAT") SHELL $CleanGRCx DEL ($NavHome+"\GRC.DAT") ENDIF IF EXIST("$DataLocation\Symantec\Norton AntiVirus Corporate Edition\7.5\GRC.DAT") SHELL $CleanGRCy DEL ("$DataLocation\Symantec\Norton AntiVirus Corporate Edition\7.5\GRC.DAT") ENDIF
SELECT CASE (SUBSTR(@IPADDRESS1,1,7)) = "129.105" AND $PARENT = "server1" RETURN CASE (SUBSTR(@IPADDRESS0,1,7)) = "122.123" AND $PARENT = "server2" RETURN CASE (SUBSTR(@IPADDRESS0,1,7)) = "122.116" AND $PARENT = "server3" RETURN ENDSELECT
SELECT CASE (SUBSTR(@IPADDRESS0,1,11)) = "129.105.122" $NavParent = "server1" CASE (SUBSTR(@IPADDRESS0,1,11)) = "122.123.121" $NavParent = "server2" CASE (SUBSTR(@IPADDRESS0,1,11)) = "122.116.122" $NavParent = "server3" CASE 1 $NavParent = "server1" ENDSELECT $GrcUpdateNew = '%comspec% /c copy "\\$NavParent\vphome\grc.dat" "$DataLocation\Symantec\Norton AntiVirus Corporate Edition\7.5\GRC.DAT" >nul' $GrcUpdateOld = '%comspec% /c copy "\\$NavParent\vphome\grc.dat" "$NavHome" >nul'
IF @INWIN = 1 IF (Exist($DataLocation+"\Symantec\Norton AntiVirus Corporate Edition\7.5\nul") = 1) $x = MESSAGEBOX("Please wait... Norton AntiVirus Definitions are being updated on your system...", "Norton AntiVirus Program Update", 64, 10) SHELL $GrcUpdateNew SHELL '%comspec% /c NET STOP "Norton AntiVirus Client" >NUL' SHELL '%comspec% /c NET START "Norton AntiVirus Client" >NUL' RETURN ELSE $x = MESSAGEBOX("Please wait... Norton AntiVirus Definitions are being updated on your system...", "Norton AntiVirus Program Update", 64, 10) SHELL $GrcUpdateOld SHELL '%comspec% /c NET STOP "Norton AntiVirus Client" >NUL' SHELL '%comspec% /c NET START "Norton AntiVirus Client" >NUL' RETURN ENDIF ENDIF
IF @INWIN = 2 SHELL $GrcUpdateOld $x = MESSAGEBOX("Notice: Norton AntiVirus Definitions were updated on your system. Please restart your computer to complete the Norton AntiVirus update once the logon script and any other applications have finished loading.", "Norton AntiVirus Program Update", 64) RETURN ENDIF RETURN
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
1 registered
(Allen)
and 1334 anonymous users online.
|
|
|