The script can be found on my GitHub repo #!/bin/sh# Kill Outlook to close any open drafted emails or it will failOsascript -e 'tell application "Remote Desktop Connection" to quit'Osascript -e 'tell application "Microsoft Document Connection" to quit'Osascript -e 'tell application "Microsoft Messenger" to quit'Osascript -e 'tell application "Microsoft Communicator" to quit'Osascript -e 'tell application "Microsoft Excel" to quit'Osascript -e 'tell application "Microsoft PowerPoint" to quit'Osascript -e 'tell application "Microsoft Word" to quit'Osascript -e 'tell application "Microsoft Office Reminders" to quit'# Pull current logged in user into 'user' variable.User=`ls -l /dev/console | cut -d " " -f 4`# Remove Apps, preferences, fonts, files, licensing, receipts, etc.Rm -R '/Applications/Microsoft Office 2011/'Rm -R '/Applications/Remote Desktop Connection.app/'Rm -Rf 'Applications/Microsoft Office 2011'Rm -R '/Library/Application Support/Microsoft/Office'Rm -R /Library/Preferences/com.microsoft*# Rename Microsoft User Data as Rename Microsoft User Data ArchiveMv /Users/$user/Documents/Microsoft User Data /Users/$user/Documents/Microsoft User Data ArchiveRm /Users/$user/Library/Preferences/com.microsoft.Excel.plistRm /Users/$user/Library/Preferences/com.microsoft.office*.plistRm /Users/$user/Library/Preferences/com.microsoft.outlook*.plistRm /Users/$user/Library/Preferences/com.microsoft.Outlook*.plistRm /Users/$user/Library/Preferences/com.microsoft.PowerPoint.plistRm /Users/$user/Library/Preferences/com.microsoft.Word.plistRm /Users/$user/Library/Preferences/ByHost/com.microsoft*Rm -Rf /Users/$user/Library/Application Support/Microsoft/OfficeExit Re: Anybody know of a tricky method to distinguish between killing Outlook 2016 and Outlook 2011? It's not a HUGE deal, but killall -kill "Microsoft Outlook" is gonna kill both. I created a Self Service policy so that that my colleagues can run the uninstaller themselves.It looks like the script formatting is broken based on the color-coding. In addition, the Microsoft User Data folder is renamed Microsoft User Data Archive (& preserved). My script does not remove Dock items as others suggest, but IS more thorough, and also removes user preferences and files for the current user. Get information about actions in Automator on Mac.Office 2008 para Mac: Home and Student Edition (Sem o suporte do Exchange Server que estava disponvel na verso 2004 ou Automator Actions - um substituto.Osascript -e 'tell application "Microsoft Database Daemon" to quit'Osascript -e 'tell application "Microsoft AU Daemon" to quit'Osascript -e 'tell application "Office365Service" to quit'Osascript -e 'tell application "Microsoft Excel.app" to quit without saving'Osascript -e 'tell application "Microsoft PowerPoint.app" to quit without saving'Osascript -e 'tell application "Microsoft Word.app" to quit without saving'#Have to kill Outlook process to close any open drafted emails or it will failRm -R '/Applications/Microsoft Communicator.app/'Rm -R '/Applications/Microsoft Messenger.app/'Rm -Rd '/Applications/Microsoft Office 2011/'#rm -R '/Applications/Remote Desktop Connection.app/'Rm -R '/Library/Application Support/Microsoft/MAU2.0'Rm -R '/Library/Application Support/Microsoft/MERP2.0'Rm -R '/Library/Automator/Get Parent Presentations of Slides.action'Rm -R '/Library/Automator/Set Document Settings.action'Rm -R /Library/Internet Plug-Ins/SharePoint*Rm -R /Library/LaunchDaemons/com.microsoft.*Rm -R '/Library/Preferences/com.microsoft.office.licensing.plist'Rm -R /Library/PrivilegedHelperTools/com.microsoft.*OFFICERECEIPTS=$(pkgutil -pkgs=com.microsoft.office.*)Will definitely be adding the removal of dock icons per script.Do shell script "sudo rm -rf '/Applications/Microsoft Office 2011'" user name "Administrator" password "enteryourpasswordhere" with administrator privilegesDo shell script "sudo rm -rf '/Applications/Microsoft Lync.app'" user name "Administrator" password "enteryourpasswordhere" with administrator privilegesDo shell script "sudo rm -r '/Applications/Microsoft Communicator.app' " user name "Administrator" password "enteryourpasswordhere" with administrator privilegesDo shell script "sudo rm -r '/Applications/Remote Desktop Connection.app' " user name "Administrator" password "enteryourpasswordhere" with administrator privilegesDo shell script "sudo rm -r /Library/Fonts/Microsoft/ " user name "Administrator" password "enteryourpasswordhere" with administrator privilegesDo shell script "sudo rm -r /Library/LaunchDaemons/com.microsoft.office.licensing.helper.plist " user name "Administrator" password "enteryourpasswordhere" with administrator privilegesDo shell script "sudo rm -r /Library/Preferences/ Microsoft " user name "Administrator" password "enteryourpasswordhere" with administrator privilegesDo shell script "sudo rm -r /Library/PrivilegedHelperTools/ microsoft" user name "Administrator" password "enteryourpasswordhere" with administrator privilegesDo shell script "rm -r ~/Library/Preferences/ microsoft "Do shell script "sudo rm -r '/Library/Internet Plug-Ins/SharePointBrowserPlugin.plugin' " user name "Administrator" password "enteryourpasswordhere" with administrator privilegesDo shell script "sudo rm -r '/Library/Internet Plug-Ins/SharePointWebKitPlugin.webplugin' " user name "Administrator" password "enteryourpasswordhere" with administrator privilegesDelete folder "~/Library/Application Support/Microsoft/Office"Display dialog "Office Has been unistalled" with icon stop giving up after 2Microsoft details ALL the Office 2011 files & locations in this article: Troubleshoot Office 2011 for Mac issues by completely uninstalling before you reinstall.I added to the script above, which should be credited to OfficeForMacHelp.com. Sal Soghoian: In Appreciation 2016.11.24 Automating Adobe Illustrator with AppleScript 2015.04.29.
![]() Automator Actions Office 2016 Code I CanPotx, etc) to an organized folder on the users desktop prior to software removal?Maybe "MS Office 2011 Preserved Items" with subfolders that that separates these files? Folder structure could be something had a great start in his github repository that I'd like to add these additional features to if possible.For our purposes, we also already have Microsoft 2016 installed so I would not want to delete MAU2.0 as mentioned by But I could simply comment out those lines (32 & 33) to retain. I'm only a beginner but can someone help me with simple code I can add to git hub code that would search and relocate distinct file extensions (.olm.![]()
0 Comments
Leave a Reply. |
Details
AuthorElena ArchivesCategories |