I have been erasing and re installing several Labs of Macs and I have run into a issue with it.
The normal process would be to erase the Mac and reinstall Monterey. On first boot you get a few windows pop up for setting up services, then you get the Remote management one, on which I hit continue. The Mac will then find our Jamf server and connect ot it and download the configurations and enrol its self with the server. Then it will continue with its enrollment policies and so on.
However, and this is really random, sometimes it appears to get to the end of the Remote Management section and then simply shuts down. The Mac appears in JAMF with a name starting with DEP-. But as far as I can tell it is not fully enrolled because I cant send policies, or use Remote to SSH in to it. The Jamf Admin account is set up on it as per the Pre-Stage set up.
The only "Fix" I have found is to erase it and start again. Sometimes this will work and the Mac will complete, sometimes I have to repeat this again. To date I have had to repeat up to 4 times for a few.
Because we have been having an issue here with Macs dropping their server connection, I have been erasing labs multiple times, and it isnt the same Macs that fail each time. It can be up to 50% failure rate in a lab, or none.
I am deleting the computers from Jamf as I set them to erase.
I have a totally new Pre-Stage setup, and it happens to that as well as the old one.
It will happen if I am working on one Mac or many Macs.
It is a feature that is getting old fast, and I have our main Summer round of re-imaging Macs to get into.
Anyone got any suggestions of what to look for to try to eliminate this?