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

Best practice to uninstall Sophos endpoint software

Hello!

 

We need to remove the Sophos Enpoint of our network. We have about 200 computers where it's installed.

 

I find that script to uninstall it : 

net stop "Sophos AutoUpdate Service"

MsiExec.exe /X{1093B57D-A613-47F3-90CF-0FD5C5DCFFE6} /qn REBOOT=SUPPRESS
MsiExec.exe /X{2BA8B791-5311-441A-87BD-34283E1E67C3} /qn REBOOT=SUPPRESS
MsiExec.exe /X{837b34e3-7c30-493c-8f6a-2b0f04e2912c} /qn REBOOT=SUPPRESS
MsiExec.exe /X{AFBCA1B9-496C-4AE6-98AE-3EA1CFF65C54} /qn REBOOT=SUPPRESS
MsiExec.exe /X{FED1005D-CBC8-45D5-A288-FFC7BB304121} /qn REBOOT=SUPPRESS

 

That script work if i exec it with admin right but i create a bat script in a GPO but not working. I can"t launch the script with admin right by GPO...

 

Can you give me the best practive to remove it with GPO?

 

Thank you !

 

Julian

 



This thread was automatically locked due to age.
  • I guess you're creating a logon or logoff script so it's running in the context of the user who isn't necessarily an administrator?

    Can you change it to be a startup script so it will run as system?

    Regards,

    Jak

  • Hello,

     

    thank for you response. 

     

    Yes it's a logon script but not working. I will modify the script to have a log to understand what's happen...

     

     

    Script is in : \\DOMAIN\netlogon\uninstall_sophos.bat

     

    I check in gpresult and the script was done. I had in the script a command to create the directory "done" in c:\ to be sure it's executed and it do.

     

     

  • Can you run it as a startup or shutdown script, those execute as local system.

    Regards,

    Jak

  • Ok thank you now the uninstall worked :)

     

    I try to do that : https://community.sophos.com/kb/en-us/120611

     

    I  need to install the new one but nothing happen. If i execute the script manualy it's working fine. 

     

    The script i use :

     

    @echo off
    SET MCS_ENDPOINT=Sophos\Management Communications System\Endpoint\McsClient.exe
    IF "%PROCESSOR_ARCHITECTURE%" == "x86" GOTO X86_PROG
    IF NOT EXIST "%ProgramFiles(x86)%\%MCS_ENDPOINT%" GOTO INSTALL
    exit /b 0

    :X86_PROG
    IF NOT EXIST "%ProgramFiles%\%MCS_ENDPOINT%" GOTO INSTALL
    exit /b 0

    :INSTALL
    pushd \\File\datalg\DATAGEN\Partage\Sophos\
    SophosInstall.exe -q
    Popd