I have a series of policies that fire off with the enrollment trigger when a computer is first picked up using DEP. Trouble I am running into is that if you wait too long on the screen for creating the user account, the policies start to run due to the computer being enrolled in the background before the user logs in for the first time. This causes the policies to run as the "_mbsetupuser" user account.
Does anyone know how I can hold off on running these scripts until the user logs in? Guessing maybe it needs to be a LaunchAgent that is installed on enrollment, that then runs a script to start the policies? Curious if there is an easier way.
