Forum Discussion
Kiril
Mar 24, 2021Iron Contributor
Replace Sophos with Windows Defender on Intune managed devices
We are replacing Sophos Endpoint Protection with Windows Defender, and I'd like to ask if anybody has experience in doing so and is willing to share it. a) removing Sophos from Windows 10 devices...
Nathan Blasac
Jun 23, 2021Iron Contributor
Do you currently have a script to uninstall it? You will need a silent way to uninstall it. Once you have that you can leverage the PowerShell script method in Intune.
BNderi
Jun 23, 2021Copper Contributor
I have found a batch file, but no PowerShell script to silent uninstall
- Nathan BlasacJun 23, 2021Iron Contributorif its a simple batch file you could always convert it to PowerShell. Also, you could leverage a Win32 app and call the batch file, you'll simply need something like a reg key on the machine to use as a detection method. Feel free to post the batch file here on the forum.
- BNderiJun 23, 2021Copper Contributorhere is the bat file
net stop "SAVService"
net stop "Sophos AutoUpdate Service"
"C:\Program Files\Sophos\Sophos Endpoint Agent\uninstallcli.exe"
MsiExec.exe /X{31616A98-3852-49E9-BDD6-77A1AB85571A} /qn REBOOT=SUPPRESS /L*v %windir%\Temp\Uninstall_SAV10_Log.txt- Nathan BlasacJun 23, 2021Iron ContributorHere is a community guide on a possible way to convert a simple batch script to powershell
https://blog.inedo.com/powershell/convert-batch
essentially you rename it to .cmd, then to .ps1. if you run it and it still works as expected the simple conversion has worked.
after you've converted the file call it with the following command line:
powershell.exe -ExecutionPolicy Byass -file .\script.ps1