Skip to content

Instantly share code, notes, and snippets.

@thewellington
Created February 20, 2014 17:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thewellington/9119343 to your computer and use it in GitHub Desktop.
Save thewellington/9119343 to your computer and use it in GitHub Desktop.
Removes Office 2011 for our Office 265 Migration #mac #office
#!/bin/bash
#
# Uninstall Office for Mac 2011 per http://support.microsoft.com/kb/2398768
#
# by bwellington@fulcrum.net
# Remove Office 2011
rm -Rf /Applications/Microsoft\ Office\ 2011
# Remove Office Prefs
rm -f ~/Library/Preferences/com.microsoft*
rm -Rf ~/Library/Preferences/Office\ 2011
rm -Rf ~/Library/Application\ Support/Office\ 2011
# Remove Licensing
launchctl unload /Library/LaunchDaemons/com.microsoft.office.licensing.helper.plist
rm -f /Library/LaunchDaemons/com.microsoft.office.licensing.helper.plist
rm -f /Library/PrivilegedHelperTools/com.microsoft.office.licensing.helper
rm -f /Library/Preferences/com.microsoft.office.licensing.plist
# Remove /Library/Application Support/Microsoft
rm -Rf /Library/Application\ Support/Microsoft
# Remove Receipts
rm -Rf /Library/Receipts/Office2011_*
rm -Rf /private/var/db/receipts/com.microsoft.office*
# Skipping "Step 7" we want to keep some of this data
# remove fonts
rm -Rf /Library/Fonts/Microsoft
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment