Hi I am wondering if there is a powershell script available to uninstall Sophos. I've found a couple scripts but they only work in command prompt. Please help!
Thanks
This thread was automatically locked due to age.
Hi I am wondering if there is a powershell script available to uninstall Sophos. I've found a couple scripts but they only work in command prompt. Please help!
Thanks
Hello JustinSetterlund,
Thank you for reaching out to the Sophos Community. In terms of things that will work right out of the box, it is possible to trigger Sophos Zap using PowerShell.
- https://support.sophos.com/support/s/article/KB-000038989?language=en_us
- .\SophosZap.exe --confirm
If you were looking for a script to specifically call remotely, the closest thing we have available right now would be the uninstall .bat script guidance below.
- https://support.sophos.com/support/s/article/KB-000033686?language=en_US
The commands themselves would need to be edited so that they are understood correctly by the system. I was able to find the following external article that details the changes that will need to be made for this to work in PowerShell.
- https://powershellexplained.com/2016-10-21-powershell-installing-msi-files/
Lastly, it is possible to enlist the help of Sophos' Professional Services team to assist in creating the script for you, though that is entirely at your discretion. If you would like to go this route, I recommend opening a support case with our team or to reach out to your Account Manager.