Thursday, October 11, 2007

Symantec Auto Install


We run Symantec's corporate antivirus on our network and the remote install tool never seemed to work very well.  I wanted a better way to make sure any user who is a member of the domain is included.  So....I created a GPO that runs a machine\startup script.  Here is the script if anyone is interested.  The company_sav.txt and testing.txt were some tests that I ran that I wanted to get rid of. Disregard those.


if exist c:\sav.txt goto end

:install
if exist c:\company_sav.txt del c:\company_sav.txt
if exist c:\testing.txt del c:\testing.txt
echo Keep this document if you don't want Symantec to be reinstalled > c:\sav.txt
msiexec /i "\\%servername%\vphome\clt-inst\win32\Symantec AntiVirus.msi" /qn REMOVE=ALL INSTALLSERVER=0 REBOOT=REALLYSUPPRESS
msiexec /i "\\%servername%\vphome\clt-inst\win32\Symantec AntiVirus.msi" /qn INSTALLSERVER=0 REBOOT=REALLYSUPPRESS NETWORKTYPE=1 SERVERNAME=%servername%

:end
exit

No comments: