MrFrostmaul Posted May 22, 2015 Posted May 22, 2015 Hello, Anyone know how to script this so that it will be automatic? Need to do on over 150+ computers so would save alot of man hours. Thanks.
JOrdan01070 Posted May 22, 2015 Posted May 22, 2015 Try this you will need to change the username, password and server. @echo OFF REM --- Check for an existing installation of Sophos AutoUpdate on 32-bit (the 'Sophos AutoUpdate Service' process) IF EXIST "C:\Program Files\Sophos\AutoUpdate\ALsvc.exe" goto _End REM --- Check for an existing installation of Sophos AutoUpdate on 64-bit (the 'Sophos AutoUpdate Service' process) IF EXIST "C:\Program Files (x86)\Sophos\AutoUpdate\ALSVC.exe" goto _End REM --- Check for an existing installation of Sophos Anti-Virus on 2003/XP (the SAV adapter config file) IF EXIST "C:\Documents and Settings\All Users\Application Data\Sophos\Remote Management System\3\Agent\AdapterStorage\SAV\SAVAdapterConfig" goto _End REM --- Check for an existing installation of Sophos Anti-Virus on Vista+ (the SAV adapter config file) IF EXIST "C:\ProgramData\Sophos\Remote Management System\3\Agent\AdapterStorage\SAV\SAVAdapterConfig" goto _End REM --- Deploy to Windows 2000/XP/2003/Vista/Windows7/2008/2008-R2 \\server\SophosUpdate\CIDs\S000\SAVSCFXP\Setup.exe -updp "\\server\SophosUpdate\CIDs\S000\SAVSCFXP" -user "username" -pwd "password" -mng yes REM --- End of the script :_End
MrFrostmaul Posted May 22, 2015 Author Posted May 22, 2015 (edited) Hi, Thank you. Getting the error "UNC paths are not supported. Defaulting to Windows directory." when trying to run. I changed the server path, username and password. Edited May 22, 2015 by MrFrostmaul
MrFrostmaul Posted May 22, 2015 Author Posted May 22, 2015 (edited) Found out all I need is a script to add the Local Service account with full permissions to C:\ProgramData\Sophos\Sophos Anti-Virus\ and then to restart the Sophos Anti-Virus service.# EDIT: managed to find ICACLS "FOLDER PATH" /grant "USER":F It adds the user to the permissions but the F for full control does not seem to apply correctly. Edited May 22, 2015 by MrFrostmaul
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now