10 Reasoning - Yohan460/JAMF-Enrollment-Kickstart GitHub Wiki
Reasoning
Currently when a new JAMF machine gets enrolled there is an enrollmentComplete policy trigger that happens. This trigger is extremely unreliable though as it can be interrupted by multiple items:
- A transition of the machine from having
_mbtsetupuserlogged in to having the user account logged in causes the policy call to stop executing - A lack of network connectivity causes the
enrollmentCompletetrigger to not return any polices - A network transition in the middle of the
enrollmentCompletepolicy call will cause the policy call to stop due to theNetworkStateChangetrigger overriding the call. - The machine shutting down or restarting during the enrollment process will cause the trigger to possibly not fire or be interrupted with no recovery on the trigger as it is only called once.
All of these things lead to the JAMF policy call not executing correctly and/or fully. Therefore I developed a better way to do it reliably