Sophos SafeGuard removal

rob_ilogix
New Contributor

Hi, I am looking for a script to do a silent forced removal of Sophos SafeGuard, so far I have not been able to work this out so has anyone else done this and can share some ideas ? I appreciate your time.

Thanks

1 REPLY 1

vickih
Contributor

We use Sophos but not SafeGuard.  I'm curious have you tried taking the pkg file from the /Library/Sophos SafeGuard FS directory and uploading that pkg file to Jamf and deploying it through a policy via self-service so that way you can at least test it out?  I would get a test machine of course.  Or at least tell me what ways you have attempted.  It does seems like a pretty easy uninstall from Sophos end:

Uninstall File Encryption from Mac endpoints

If you need to uninstall the software from a client computer, proceed as follows:

  1. On the Mac client go to /Library.
  2. Open the folder Sophos SafeGuard FS.
  3. Select and double-click the file Sophos SafeGuard FS Uninstaller.pkg
  4. A wizard guides you through uninstallation.
  5. Restart the system before continuing to work with your Mac.
As soon as the last Sophos SafeGuard product is removed, the client configuration is deleted as well.

Maybe something like this and I have no idea if it will work...I typically use everyone else's script(s) and learn from them. 

#!/bin/bash

#Script to Uninstall Sophos SafeGuard

cd /Library/Sophos\ SafeGuard\ FS

sudo installer -pkg Sophos\ SafeGuard\ FS\ Uninstaller.pkg -target /

exit 0

You can always drag pkg to terminal to get the correct path.