I am trying to execute the following script on via a policy -
!/bin/sh
sudo launchctl load /Library/LaunchDaemons/com.cisco.amp.daemon.plist
sleep 10
sudo open /Applications/Cisco AMP/AMP for Endpoints Connector.app
Testing the script on a small test group with a recurring check-in and once per machine trigger to a non-site defined test group, runs fine. However when I assign it to a site, I (sometimes) get the following error (however the script seems to run successfully anyway)..
Script result: LSOpenURLsWithRole() failed with error -10810 for the file /Applications/Cisco AMP/AMP for Endpoints Connector.app.<br/>
Scratching my head why it works.. but reports as failed on some systems and successful on others.....