Microsoft has a nice post here about the adding of Defender to the Office installer that many have used in the past. I didn't catch the change in time to block the install with a profile, and about a dozen Macs picked up the Defender component with an Office suite install. I've fixed the go-forward issue, but cleaning up the Macs that got Defender doesn't seem as straight forward as the mentioned
rm -rf /Applications/Microsoft\\ Defender.app
from the article. There's an uninstall that is laid down with the installer that appears to remove more than just the .app itself. There's a bit of crud left behind that gets cleaned up with Defender's baked in uninstaller mentioned here
sudo '/Library/Application Support/Microsoft/Defender/uninstall/uninstall'
But I can't seem to run that remotely. I'd rather run the uninstaller, and let it catch things like LaunchAgents/Daemons/other crud that were installed with the installer but would be left behind by just dragging the .app to the trash. Has anyone had any success with a policy running the uninstall string as a command? It works without issue when run in a local session, just not remotely via Jamf. Or am I just left to write a script looking for everything that I've found?
