Tuesday, March 1, 2011

GPO To Install AVG at Entire School 0141 did this all the time




 



 

 

 


 

::written by Jim Lico on 3/11/05
::jfl improved documentation 12/20/05
::this batch file will set a workstation with avg7 client to the correct
::connection string for the avg7admin server
@echo off
set avgsvr7=%1
if not [%echo%]==[] echo %echo%
::edit and uncomment the following statement to hard code your server
set avgsvr7=techsvr50140-fileserv
if not [%avgsvr7%]==[] goto :gotCCname
@echo ///////////////////////////////////////////
@echo The environment variable AVGSVR7 may be set by the calling application,
@echo otherwise this batch file expects a command line paramater
@echo equal to the AVG control center server name
@echo (example: AVGconnectWS.bat myserver)
@echo you can enter the server name as a parameter on the command line
@echo Alternatively, you can change the following value "SERVERNAME"
@echo after the equal sign to the name of your server and activate the nexe line
@echo set AVGSVR7=avgctr

 
@echo please try again
@echo ///////////////////////////////////////////
goto :end

 
:gotCCname
if "%OS%"=="Windows_NT" goto NTplus
"c:\Progra~1\Grisoft\AVG7\AVGW.EXE" /CONNECT="http://%avgsvr7%:4156"
goto :end

 
:NTplus
"%ProgramFiles%\Grisoft\AVG7\AVGW.EXE" /CONNECT="http://%avgsvr7%:4156"

 
:end

 

 

 

No comments:

Post a Comment