Is it possible to have a script run as a pre flight script during User Initiated Enrollment rather than as a policy that kicks off during Enrollment complete?
My current setup for User Initiated Enrollment has 2 policies that run with the Enrollment complete flag:
1. Names the computer to the S/N then Sets Ethernet Search Domains and NTP server
2. Joins the computer to Active Directory
Lately I have noticed several Macs showing up in AD with default names like "Users MacBookPro". When looking at the log, even though the first policy is set to run first (named with a 1 in front) the Join AD policy is actually running first, so the computer has not yet been renamed. I am not able to reliably repeat this behavior, so the only option I have is to set the AD Join policy to run with the startup trigger, and configure the first policy to immediately restart the computer.
Ideally I'd like the JSS to rename the computer during enrollment as part of the Quick-Add package, but I can't figure out how to do this with User Initiated Enrollment. I know that I can modify a package created with Recon, but then I would need to manually assign the user in the JSS. With User Initiated the user signs in with AD credentials and the computer is automatically assigned.