Our enrollment workflow is based on DEPNotify. When the user enrolls the Mac with User Initiated Enrollment everything is ok but when the method is DEP we have the following issue:
1 - The FirstSetup policy (DEP Notify) runs triggered by Enrollment complete, and the script wait to Finder to load with user session. Works fine.
2 - If you take a long time to create the user account, another policies triggered by check-in, start to run with the _mbsetupuser user.
We want these policies to wait the Enrollment process is finished.
We try to unload/load the jamf daemon for check-in in the DEPNotify Script but does not work.
"launchctl unload /Library/LaunchDaemons/com.jamfsoftware.task.1.plist" at the beginning,.
"launchctl load /Library/LaunchDaemons/com.jamfsoftware.task.1.plist" at the end.
Any ideas that can help us?
Thanks in advance