Do not run during first run / adobeinstall

djdavetrouble
Contributor III

If I want to keep some of my policies from running during the reboot phase of imaging, is that as simple as creating adobeinstall as a local user on the JSS(JPS) then excluding from those policies?

2 REPLIES 2

Look
Valued Contributor III

Not sure if the user will work but there are a few other ways.

Pretty sure the bind to Casper happens after the first reboot so policies set to restart will not happen during this phase, but at the next reboot instead, works pretty well for once per computer policies, same goes for login policies I think.

Have a smart group of Enrollment less than one day and exclude that.

Create an EA that is populated during that phase (i.e. as part of the first run script) then have a smart group for this being unset and exclude that, as soon as the machine recons after it is set the policies will start to work.

BOBW
Contributor II

I know I had this issue running first run scripts, I put this at the start of the script. The first run script will just call policies to run

#!/bin/sh
if [[ $loggedInUser == adobeinstall ]]
then 
exit 0
else
##first run script starts
#
#
fi