Guest User!

You are not Sophos Staff.

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

Sophos Central uninstallcli.exe quiet mode

Hello, 

 

I'm trying to uninstall the Sophos Central Agent in some computers. In this oportunity I want to use the unisntallcli.exe file located in c:\Program Files\Sophos\Sophos Endpoint Agent\

 

The question is: how can I achieve this in quiet mode?

 

According to this kb: https://community.sophos.com/kb/en-us/127045 you can use windows command line argument "--quiet" during SophosSetup.exe installation.

 

Is there something similar to this I can use in a script with the uninstallcli.exe file?



This thread was automatically locked due to age.
  • Hello DianneY,

     

    Thanks for your assistance.

    As the article you refered me says, I executed the command:
    REG QUERY HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall /s /f SOPHOS
    In order to gather the uninstall strings.

    So I created the following batch file, according to the uninstall strings that the previous results provided me:
    net stop "SAVService"
    net stop "Sophos AutoUpdate Service"
    MsiExec.exe /qn /X{2C14E1A2-C4EB-466E-8374-81286D723D3A} REBOOT=ReallySuppress
    MsiExec.exe /qn /X{8078549C-CFF0-48C5-9B77-6BA48A14673D} REBOOT=ReallySuppress
    MsiExec.exe /qn /X{80D18B7B-8DF1-4BCA-901F-BEC86BAE2774} REBOOT=ReallySuppress
    MsiExec.exe /qn /X{BEEB46C0-1983-4DF2-AD40-8C464842DF24} REBOOT=ReallySuppress
    MsiExec.exe /qn /X{EB2A2F1B-6662-444E-8983-AB9B6E9DF6A6} REBOOT=ReallySuppress

     

    Since there is one uninstall string per component, I supose those provided in my script are not enought. But still, I cant find the other components strings.

     

    Also, the script suggested in the article https://community.sophos.com/kb/en-us/122126 uses the "C:\Program Files\Sophos\Sophos Endpoint Agent\uninstallcli.exe" command, wich is enough for uninstall the hole program, but I can't find a way to execute it in silent mode in order to use it in a GPO Script.

     

    Any suggestions?

     

    Regards.

     

  • Hello  

    You can use all of the strings in the article to ensure that it should work regardless of what the endpoint has. The msi uninstall strings should just open a command prompt but there is no user interaction needed.

    Maybe you can look into answer files (.iss) to see if this concept helps?