Scripting Question

Uninstall Office 2011 (Mac) Via Dell KACE

12/07/2015 1394 views

Hi all,

I am trying to create a script to uninstall Office 2011 for Office 2016 deployment.

I have a uninstall.sh file . which looks like the following. also I have created a script in Dell KACE with that  (Type:- online KScript , depemdemcies :- uninstall.sh

Task 1

Verfy that the directory "/use/bin" exists.

on Success


Launch bin\sh with params $(KACE_DEPENDENCY_DIR)/uninstall.sh ”.

uninstall.sh file exactly looks like this.

rm -R '/Applications/Microsoft Communicator.app/'
rm -R '/Applications/Microsoft Messenger.app/'
rm -R '/Applications/Microsoft Office 2011/'
rm -R '/Applications/Remote Desktop Connection.app/'
rm -R '/Library/Application Support/Microsoft/'
rm -R /Library/Automator/*Excel*
rm -R /Library/Automator/*Office*
rm -R /Library/Automator/*Outlook*
rm -R /Library/Automator/*PowerPoint*
rm -R /Library/Automator/*Word*
rm -R '/Library/Automator/Add New Sheet to Workbooks.action'
rm -R '/Library/Automator/Create List from Data in Workbook.action'
rm -R '/Library/Automator/Create Table from Data in Workbook.action'
rm -R '/Library/Automator/Get Parent Presentations of Slides.action'
rm -R '/Library/Automator/Get Parent Workbooks.action'
rm -R '/Library/Automator/Set Document Settings.action'
rm -R '/Library/Fonts/Microsoft/'
rm -R /Library/Internet\ Plug-Ins/*SharePoint*
rm -R /Library/LaunchDaemons/*microsoft*
rm -R /Library/Preferences/*microsoft*
rm -R /Library/PrivilegedHelperTools/*microsoft*

when I run this script. its pushing the uninstall.sh to Mac and I can see the file in '/Library/Application Support/Dell/KACE/data/kbots_cache/packages/kbots/201/'

but its error out as "ProcessOps_LaunchProgram: Launch failed: 1 exitCode=126"

Could someone help me out .



0 Comments   [ + ] Show comments


All Answers

Try using "Launch a program" and just call "$(KACE_DEPENDENCY_DIR)/uninstall.sh".
Answered 12/08/2015 by: jknox
Red Belt

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ