Following commands disables Microsoft AutoUpdate launch agent from launching at boot and periodicaly checking for updates.
sudo defaults write /Library/LaunchAgents/com.microsoft.update.agent.plist Disabled -bool YES
sudo defaults write /Library/LaunchAgents/com.microsoft.update.agent.plist RunAtLoad -bool NO
sudo chflags schg /Library/LaunchAgents/com.microsoft.update.agent.plist
One more thing, if you want to disable feedback, telemetry and starting of the Microsoft AutoUpdate app when you start another Microsoft app:
defaults write com.microsoft.autoupdate2 'MAUFeedbackEnabled' -bool FALSE
defaults write com.microsoft.autoupdate2 'SendAllTelemetryEnabled' -bool FALSE
defaults write com.microsoft.autoupdate2 'StartDaemonOnAppLaunch' -bool FALSE
@refo Thanks for this
For some reason lines 1 and 2 didn’t work for me
/Library/LaunchAgents/com.microsoft.update.agent.plist
would be overwritten with what looked like a directory listing.Not sure why, I cannot see why this is happening 🤷🏼♂️
Anyway I got around this by using an alternative way to change the plists.