segunda-feira, 22 de dezembro de 2014

REMOVE SOPHOS ENDPOINT FOR WINDOWS TOO EASY

Tested in enviroment ad windows server 2012 r2 with console manager 5.2, and client's workstation 8.1 e 7 x64, by this way http://www.sophos.com/en-us/support/knowledgebase/109668.aspx  just resolved with successful when is do tha in this order to remove:

1.Sophos Patch Agent
2.Sophos Compliance Agent
3.Sophos Remote Management System
4.Sophos Client Firewall
5.Sophos Anti-Virus
6.Sophos AutoUpdate


Normaly the keys you can find here : 

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\
Note: On a 64-bit computer you will need to check both the key above and the following key:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall

Save this script on bat file (remove.bat) and runing
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::  script model::::::::::::::::::::::::::::::::::::::::::::::::
@echo off
net stop "Sophos AutoUpdate Service"
taskkill /im ManagementAgentNT.exe /f
taskkill /im RouterNT.exe /f
taskkill /im SavService.exe /f
taskkill /im SAVAdminService.exe /f 
taskkill /im swc_service.exe /f 
taskkill /im swi_service.exe /f 
taskkill /im SCFService.exe /f 
taskkill /im SCFManager.exe /f 
taskkill /im spa.exe /f 
taskkill /im ALsvc.exe /f
taskkill /im ALMon.exe /f
taskkill /im SavMain.EXE /f

Timeout /t 5
MsiExec.exe /X{2FB80981-C6B6-4FCA-BC65-24437DF4C8CB} /qn REBOOT=SUPPRESS /passive >NUL 2>NUL  
Timeout /t 5
MsiExec.exe /X{FED1005D-CBC8-45D5-A288-FFC7BB304121} /qn REBOOT=SUPPRESS /passive >NUL 2>NUL  
Timeout /t 5
MsiExec.exe /X{A805FB2A-A844-4cba-8088-CA64087D59E1} /qn REBOOT=SUPPRESS /passive >NUL 2>NUL 
Timeout /t 5
MsiExec.exe /X{D929B3B5-56C6-46CC-B3A3-A1A784CBB8E4} /qn REBOOT=SUPPRESS /passive >NUL 2>NUL  
Timeout /t 5
MsiExec.exe /X{D924231F-D02D-4E0B-B511-CC4A0E3ED547} /qn REBOOT=SUPPRESS /passive >NUL 2>NUL  
Timeout /t 5
MsiExec.exe /X{EC6B53C2-A961-4420-A4B0-F9D78DDC4EE6} /qn REBOOT=SUPPRESS /passive >NUL 2>NUL
Timeout /t 5
MsiExec.exe /X{9ACB414D-9347-40B6-A453-5EFB2DB59DFA} /qn REBOOT=SUPPRESS /passive >NUL 2>NUL
Timeout /t 5
MsiExec.exe /X {196467F1-C11F-4F76-858B-5812ADC83B94} /qn REBOOT=SUPPRESS /passive >NUL 2>NUL  
Timeout /t 5
rmdir /S /Q C:\Program Files (x86)\Sophos\
Timeout /t 5
rmdir /S /Q C:\Program Files\Sophos\
Timeout /t 5
rmdir /S /Q C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Sophos
shutdown -a

echo %COMPUTERNAME% > "c:\%COMPUTERNAME%.log"
exit

:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::end script::::::::::::::::::::::::::::::::::::::::::::::::

Nenhum comentário:

Postar um comentário