Sophos have officially logged the KB article to build custom batch file to trigger uninstallation from the computers. Sophos Endpoint Security and Control: How to uninstall using a command line or batch file The Sample Batch File is showing here . The above process does work but it is time consuming and challenging. I found the most quickest and easiest method by revoking the "C:\Program Files\Sophos\Sophos Endpoint Agent\uninstallcli.exe", all you need to do is disabled temper protection from Sophos Console. Here the screenshot showing the Sophos Components are removed one by one. After few mins, all components will be removed. You can easily deploy this using Intune or any other device management tool.
- Other Apps
Microsoft Intune does not support deployment of DMG file. As per the Microsoft documentation : " Only .pkg files may be used to upload macOS LOB apps to Microsoft Intune. Conversion of other formats, such as .dmg to .pkg is not supported." Microsoft Intune have provided support to deploy shell script to macOS. In the example below, I will deploy Adobe Acrobat Reader DC 2020.009.20063 DMG file on MacOS Device. Save following script as .sh package i.e. InstallAdobeReader.sh #! /bin/sh url=https://ardownload2.adobe.com/pub/adobe/reader/mac/AcrobatDC/2000920063/AcroRdrDC_2000920063_MUI.dmg set -x tempd=$(mktemp -d) curl $url > $tempd/AdobeReaderDC.dmg listing=$(sudo hdiutil attach $tempd/AdobeReaderDC.dmg | grep Volumes) volume=$(echo "$listing" | cut -f 3) package=$(ls -1 "$volume" | grep .pkg | head -1) sudo installer -pkg "$volume"/"$package" -target / sudo hdiutil detach "$(echo "$volume" | cut -f 1)" rm -r