Return to site

Out of office for outlook mac 2016

broken image

RemoveDirectory '/User/$loggedinuser/Library/Containers/' RemoveFile '/Library/Preferences/2.plist' RemoveFile '/Library/PrivilegedHelperTools/2.helper' RemoveFile '/Library/LaunchDaemons/2.ist' RemoveDirectory '/Applications/Microsoft Word.app' RemoveDirectory '/Applications/Microsoft PowerPoint.app' RemoveDirectory '/Applications/Microsoft Outlook.app'

broken image
broken image

RemoveDirectory '/Applications/Microsoft OneNote.app' RemoveDirectory '/Applications/Microsoft Excel.app' bin/echo 'Backed up ''$i'' to /Users/$loggedinuser/Documents/Office_2016_Backup_$current_date/Office/' Sudo -u '$loggedinuser' /bin/mv '$1' /Users/$loggedinuser/Documents/Office_2016_Backup_'$current_date'/Office/

broken image

#Function to backup Office/Outlook preferences/profiles only if found #Function to remove directory only if found #!/bin/bashĭeclare -x loggedinuser=`python -c 'from SystemConfiguration import SCDynamicStoreCop圜onsoleUser import sys username = (SCDynamicStoreCop圜onsoleUser(None, None, None) or ) username = ] (username + 'ĭeclare -x current_date=$(date +'%Y%m%d_%H%M%S') Try this uninstall script (courtesy of BP) to fully uninstall Office 2016, then push out the 15.21 package.