Installing Avast for Business with a Logon Script

Install Avast using a .bat as a logon script

 

1) Copy the text below and save as a .bat file.

2) Change the file location to reflect the location and name of the install file on your network. (\\server\install\avast_business_antivirus_setup.exe)

3) If you are not familiar with how to use a logon script with your domain, search the Microsoft web site for your domain controllers OS and how to use logon scripts.

https://technet.microsoft.com/en-us/library/Cc753404.aspx

 

 

The script below checks for the file bccinfo.dat and if it exist will abort the installation to prevent a reinstall each time the device logs on the network.

 

 

IF EXIST "c:\programdata\Avast Software\avast\bccinfo.dat" GOTO END

 

:32-bit

if exist %SystemRoot%\SysWOW64 goto 64-bit

\\server\install\avast_business_antivirus_setup.exe

echo "Avast Business Install" >

goto END

 

:64-bit

\\server\install\avast_business_antivirus_setup.exe

echo "Avast Business Install" >

:END

 

Need additional help?

Contact us
Avast Total Care

Your premium tech support for PCs, printers & more

Call now for a free consultation and subscribe! 1-844-340-9251
devices Get help for all your device problems 24x7
1-844-340-9251