![]() ![]() ![]() Sudo rm -rf “/Users/$i/Library/Containers/“ ![]() Sudo rm -rf “/Users/$I/Library/Containers/“ # REMOVE SUPPORTING OFFICE FILES FROM END USER LIBRARIES #įor i in $(/bin/ls /Users | sed -e '/Shared/d' \ Sudo rm -rf “/Library/Preferences/2.plist” Sudo rm -rf “/Library/PrivilegedHelperTools/” ![]() Sudo rm -rf “/Library/PrivilegedHelperTools/2.helper” Sudo rm -rf “/Library/LaunchAgents/.plist Sudo rm -rf “/Library/LaunchDaemons/.plist Sudo rm -rf “/Library/LaunchDaemons/2.ist” # REMOVE SUPPORTING OFFICE FILES FROM SYSTEM LIBRARY # # REMOVE APPLICATIONS FROM "/APPLICATIONS/" Continue removal script."Įcho "Microsoft applications are running. MicrosoftRunning=$( ps axc | grep MICROSOFT )Įcho "No Microsoft applications are running. IF SO, EXIT SCRIPT #Įcho "Determine what Office products are currently running." # DETERMINE IF MICROSOFT APPLICATIONS ARE STILL RUNNING. PID=`ps axc | grep "$APP$" | awk ''`Įcho "Application $APP did not quit with osascript. # FORCE QUIT RUNNING MICROSOFT APPLICATIONS #įor APP in ps axc | grep -q "$APP$" thenĮcho "Application $APP is running. ONENOTEAPP="/Applications/Microsoft OneNote.app" OUTLOOKAPP="/Applications/Microsoft Outlook.app" POWERAPP="/Applications/Microsoft PowerPoint.app" WORDAPP="/Applications/Microsoft Word.app"ĮXCELAPP="/Applications/Microsoft Excel.app" Script will force quit running Microsoft Applications # Script to remove all Microsoft Office 2016 file from local computer. With some more time ill eventually be a bit more intuitive with some while loops, finish integrating kcrawford's dockutl, integrate a universal license (I know I saw this somewhere on GitHub, but if I can't find it. However, if we bring the Office installer as a Custom Software, this could be utilized as a removal script as well. We implement the script as a Predefined Command. Here is the script that I would be open for constructive criticisms or improvements on the script itself~ Although the dockutil portion of the script is not quite working yet to remove dock icons. For those of us who utilize the "Public Software - Microsoft Office 2016" here is a script that uninstalls and removes Microsoft Office 2016 Files. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |