Posted on 11-27-2012 09:33 AM
I created a script that I want to use when imaging Macs.
The script runs this command
sudo /usr/sbin/jamf policy -trigger CoreSoftware
The script is added to configuration in Casper Admin and is set to "run At Reboot" I also added the OS Requirement 10.7.x, 10.8.x. So that it would only run on a new Mac. I then Used Casper Imaging and Images a Mac.
How Can I tell if the script is going to run? Is there a better way to get a policy to run at Reboot but only the new Mac I just imaged?
Posted on 11-28-2012 09:11 AM
I am far (really, really far) from being a script expert but I believe that you can remove the sudo from your command. Anything called by the jamf binary already runs as root.