I am working on deploying a new zero-touch provisioning process. This new policy alerts the user that they're running an outdated macOS if they enroll a Mac running macOS older than Sonoma. The alert includes a button to click to launch Software Update. After the upgrade to Sonoma, the ZTP policy launches automatically thanks to a launchdaemon that gets installed on Macs running an OS older than Sonoma. After the ZTP policy completes, the user needs to reboot. When they login, they are kept waiting 10-12 minutes before they reach the desktop. When I ran this through on my test Mac, I found that softwareupdatd is responsible for this but I have not figured out exactly what is allegedly updating. Since we just ran an upgrade to Sonoma, all of the OS components should be up to date. If a Mac running Sonoma (any version of Sonoma) enrolls, we don't see this issue. This is not a complete disaster. It's just an annoyance. I did not see this happen with a Mac VM that I enrolled yesterday. The only difference between the Mac VM and my test Mac aside from one being virtual and the other being hardware is that the VM is not getting the profile that enforces FileVault. Also, the VM was a user-initiated enrollment. I'm about to run this through again and this time take note of install times in the install log to pinpoint exactly when this issue starts. Does anyone have an idea why this is happening?
Solved
Long login time after zero-touch provisioning and upgrade to Sonoma
Best answer by sdagley
@howie_isaacks I have a little more direct approach for when someone tries to enroll a Mac running a version of macOS lower than our current minimum - an enrollment policy that shows a message to the user why and then runs the erase-install script configured to re-image the Mac with the appropriate version of macOS.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
