If you have a Sophos client that is failing to pick up policy changes, this will give it a kick. After restarting it may take 10 minutes or so for the new policy to refresh fully.
It has to be run 'As Admin'.
Code: Select all
@echo off
:: run this as administrator
cd "C:\ProgramData\Sophos\Remote Management System\3\Agent\AdapterStorage\SAV\"
if %errorlevel% NEQ 0 goto:eof
del * /q
net stop "Sophos Agent"
net start "Sophos Agent