Enrollment process

New Contributor

Hello, wanted to ask if there was a way once a machine is done with the enrollment process it would log or restart to signal that is done with all policy's and profiles.


Honored Contributor III

I would not worry about configuration profiles too much, those are nearly instant. You would need an extension attribute to read what configuration profiles are installed and what you define as complete for JAMF to take action.


For policies, you can add a inventory update to your list of things. That will update JAMF on the status of the device, and you can make smart groups to look for whatever you want. You can target a reboot policy at a smart group that you use to identify a device is "configured". 

Legendary Contributor III

"Done" is very subjective given we're never really done managing a device.

For our enrollment process, I use a custom script that calls swiftDialog and shows the steps and installations being executed. At the end, when all policies that I've called in the script have completed, whether there were failures or not, it waits for the end user to click an "OK" type button. When they do that, I write an entry into a custom plist on the Mac to indicate it's "done" or at least as done as I want it to be during this first phase after enrollment. The script that called and updates swiftDialog loops and watches for that plist entry as well as watching for the Dialog process to close. When it sees both of those conditions, it initiates a restart using the jamf binary and the Mac restarts.

If you're just enrolling your Macs and letting policies run on the natural check-in trigger and not via a wrapper policy like I described above, then using the method @AJPinto would be the best way. Collect inventory, have a Smart Computer Group that looks for all the apps and other conditions you deem required for it to be "done" and then call a separate policy that restarts the Mac. Keep in mind that the restart may not happen for anywhere from 5 minutes and up, meaning on the next check-in, so there will likely be a delay until restart occurs.