"/Users/$consoleuser/Library/Preferences/" "/Users/$consoleuser/Library/Preferences/.plist" "/Users/$consoleuser/Library/Preferences/.ist" "/Users/$consoleuser/Library/Application\ Support/Microsoft\ Update\ Assistant/" "/Users/$consoleuser/Library/Application\ Support//" "/Users/$consoleuser/Library/Application\ Support/Microsoft AutoUpdate" "/Users/$consoleuser/Library/Application\ Support/Microsoft AU Daemon" Here is my MS Office uninstaller script:Ĭonsoleuser=$(ls -l /dev/console | awk '') Jamf has a script section so use Jamf to handle it since it runs as root anyways. Hi Macgeek, I would not use composer to package a script. Sudo rm -R /Users/*/Library/Containers/Microsoft* Sudo rm -R /Users/*/Library/Containers/'OneDrive File Provider' Sudo rm -R /Users/*/Library/Containers/com.microsoft* Sudo rm -R /Applications/Microsoft\ OneDrive.app Sudo rm -R /Applications/Microsoft\ To Do ![]() Sudo rm -R /Applications/Microsoft\ Teams.app Sudo rm -R /Applications/Microsoft\ Word.app Sudo rm -R /Applications/Microsoft\ PowerPoint.app Sudo rm -R /Applications/Microsoft\ Outlook.app Sudo rm -R /Applications/Microsoft\ OneNote.app Sudo rm -R /Applications/Microsoft\ Excel.app sh script is setup like this but with a lot more paths listed: Thanks! Why will the Terminal commands work in Terminal but not when I run them in Composer. If I copy one line and paste it into Terminal it will run and remove the file(s). The Composer package will remove all the applications after a while but most of the rest of the files aren't removed. ![]() Then a I have a script run that is sudo sh /path to. ![]() sh script and it is installed with Composer. I'm trying to remove all Office 365 applications and any file with the word Microsoft in it from all our Macs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |