I'm hoping to provide a way to take a Mac, quite literally, directly out of the box and image it (having never run Setup Assistant). I can disable the setup assistant, but the problem is that the management account does not seem to be added to the Mac (let alone the other account I'm trying to add via script). Is this just not possible? MUST the Setup Assistant run before we can image?
Imaging prior to Setup Assistant running
Best answer by stevewood
Go get a copy of CreateUserPKG from the App Store. This will give you a PKG file that you can add to Casper Admin, set to Install at Reboot, and it will put a user on the system for you.
Also, have you checked to make sure the JAMF enrollment is running and completing properly? I was seeing issues with enrollment not completing due to an inability to connect to the JSS. Once I fixed that and enrollment finished, my user was there. You can start the machine in single user mode (CMD-S) and then navigate to the /L/AS/JAMF folder to find the FirstRun folder. Check for the Enrollment folder and the enrollment.sh (I think that's the name) file. If it's there, enrollment did not finish.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
