Skip to content

Instantly share code, notes, and snippets.

@htlin222
Last active December 23, 2025 11:02
Show Gist options
  • Select an option

  • Save htlin222/b3f7385007ec8187df3e7c1414ba8bd7 to your computer and use it in GitHub Desktop.

Select an option

Save htlin222/b3f7385007ec8187df3e7c1414ba8bd7 to your computer and use it in GitHub Desktop.
Remove Microsoft AutoUpdate from macOS - Complete Guide

Remove Microsoft AutoUpdate from macOS

A complete guide to kill, remove, and prevent Microsoft AutoUpdate from running on macOS.

Step 1: Kill Running Processes

pkill -9 -f "Microsoft AutoUpdate"
pkill -9 -f "Microsoft AU"

Step 2: Unload Launch Agents

launchctl bootout gui/$(id -u) com.microsoft.update.agent 2>/dev/null
launchctl bootout gui/$(id -u) com.microsoft.SyncReporter 2>/dev/null
launchctl bootout gui/$(id -u) com.microsoft.OneDriveStandaloneUpdater 2>/dev/null

Step 3: Remove Launch Agent Files

# User-level
rm -f ~/Library/LaunchAgents/com.microsoft.update.agent.plist
rm -f ~/Library/LaunchAgents/com.microsoft.autoupdate*.plist

# System-level (requires sudo)
sudo rm -f /Library/LaunchAgents/com.microsoft.update.agent.plist
sudo rm -f /Library/LaunchDaemons/com.microsoft.autoupdate*.plist

Step 4: Remove the Application

sudo rm -rf "/Library/Application Support/Microsoft/MAU2.0"

Step 5: Clean Up Preferences and Caches

rm -rf ~/Library/Preferences/com.microsoft.autoupdate*.plist
rm -rf ~/Library/Caches/com.microsoft.autoupdate*
rm -rf ~/Library/Logs/Microsoft/autoupdate*

Step 6: Prevent Reinstallation (Optional)

If you still use Microsoft Office apps, this prevents automatic update checks:

defaults write com.microsoft.autoupdate2 HowToCheck -string 'Manual'

One-Liner (Complete Removal)

pkill -9 -f "Microsoft AutoUpdate" ; \
launchctl bootout gui/$(id -u) com.microsoft.update.agent 2>/dev/null ; \
rm -f ~/Library/LaunchAgents/com.microsoft.update.agent.plist ; \
rm -rf ~/Library/Preferences/com.microsoft.autoupdate*.plist ; \
rm -rf ~/Library/Caches/com.microsoft.autoupdate* ; \
sudo rm -rf "/Library/Application Support/Microsoft/MAU2.0"

Verify Removal

# Check no processes running
pgrep -fl "Microsoft" | grep -i update

# Check no launch agents loaded
launchctl list | grep -i microsoft

# Check app removed
ls "/Library/Application Support/Microsoft/MAU2.0" 2>/dev/null || echo "Successfully removed"
@htlin222
Copy link
Author

Microsoft AutoUpdate:嗨~我來了!有更新喔!
我:不要。
Microsoft AutoUpdate:可是我真的有更新耶 🥺
我:我說不要。
Microsoft AutoUpdate:那我晚點再問你好了~
我:......
(5分鐘後)
Microsoft AutoUpdate:嗨~還記得我嗎?我是 Microsoft AutoUpdate!
我:記得,滾。
Microsoft AutoUpdate:可是 Word 有安全性更新耶!
我:我根本沒在用 Word。
Microsoft AutoUpdate:那 Excel 呢?PowerPoint 呢?OneDrive 呢?
我:都沒有。
Microsoft AutoUpdate:沒關係!我還是會每天來看你的 ❤️
我:......
(開機時)
Microsoft AutoUpdate:早安!昨晚睡得好嗎?對了我有更新喔!
我:你怎麼還在?
Microsoft AutoUpdate:因為我愛你啊~
我:sudo rm -rf
Microsoft AutoUpdate:等等你在幹嘛——
(寂靜)
我:終於。
Microsoft AutoUpdate 的鬼魂:下次 Office 更新我還會回來的......
我:幹。

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