Jump to content

Recommended Posts

Posted

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

Posted (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 by MrFrostmaul
Posted (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 by MrFrostmaul

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...