Skip to content

Instantly share code, notes, and snippets.

@refo
Last active March 7, 2024 13:06
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save refo/6127df8f9da7c31ae5220c1a9b880b35 to your computer and use it in GitHub Desktop.
Save refo/6127df8f9da7c31ae5220c1a9b880b35 to your computer and use it in GitHub Desktop.
Disable Microsoft AutoUpdate on MacOS (Office 365 updater)

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

source: https://forums.macrumors.com/threads/how-to-get-rid-of-microsoft-autoupdate.2231809/?post=28384662#post-28384662

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

source: https://forums.macrumors.com/threads/how-to-get-rid-of-microsoft-autoupdate.2231809/?post=28384747#post-28384747

@andrewcrook
Copy link

@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.

> sudo defaults write /Library/LaunchAgents/com.microsoft.update.agent.plist Disabled -bool YES

> cat /Library/LaunchAgents/com.microsoft.update.agent.plist

-rw-r--r--  1 root  wheel  715 17 Oct 13:25 /Library/LaunchAgents/com.microsoft.update.agent.plist

Not sure why, I cannot see why this is happening 🤷🏼‍♂️

Anyway I got around this by using an alternative way to change the plists.

sudo /usr/libexec/PlistBuddy -c "Set Disabled YES" /Library/LaunchAgents/com.microsoft.update.agent.plist
sudo /usr/libexec/PlistBuddy -c "Set RunAtLoad NO" /Library/LaunchAgents/com.microsoft.update.agent.plist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment