Hello all.
I'm just trying to figure out the best way to setup a postimage routine that installs a few things like sophos and other packages which install best on a live OS.
Right now, I have a policy that checks for "any" and the scope is set to a smart group of computers that don't have certain software (that gets installed postimage). That works, but I'd rather do it by calling a policy via a manual trigger.
"sudo jamf policy -trigger postimage -verbose" works from the command line.
My first attempt to automate it was to have a launchD in /Library/LaunchDaemon that calls the Jamf command at startup (actually it calls a script) and then deletes itself. That does work when manually loaded, but the launchD does not seem to run when I install it from a .dmg during the casper imaging process. "launchctl list" shows it loaded, but it does not work until after I run "launchctl load -w /Library/LaunchDaemons/com.domain.postimage".
Anyway, does someone have a good idea as to a better way of calling the jamf manual policy after the OS boots the first time?
Thanks!
Aaron