This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Quick and dirty way to restore missing AutoUpdate files (in certain cases)

This is really dirty but perhaps of help. If you are trying to figure out which files are missing from the Sophos\AutoUpdate folder and the client accesses the server via UNC:

@echo off
SETLOCAL
NET USE Z: \\.....\SophosUpdate password /USER:.....\updateuser /PERSISTENT:NO SET _CIDloc_=\\....\SophosUpdate\CIDs\S000SET _Source_=%_CIDloc_%\SAVSCFXP\sau\program files\Sophos\AutoUpdateSET _Target_=%ProgramFiles%\Sophos\AutoUpdateIF EXIST "%ProgramFiles(x86)%" SET _Target_=%ProgramFiles(x86)%\Sophos\AutoUpdateFOR %%I IN ("%_Source_%*.*") DO IF NOT EXIST "%_Target_%%%~nxI" xcopy /L "%%I" "%_Target_%"
NET USE Z: /DELETE

Enter the necessary credentials for NET USE. Replace .... with the server name (and if needed correct the share name). Run this as a batch file on the client. Omitting the /L switch on the xcopy command actually copies the file(s).

Christian

:31335


This thread was automatically locked due to age.
Parents Reply Children
No Data