Hey everyone! This MUST have been discussed, but to be honest, I've tried searching for it, and my use case is a little outside what I think is 'normal?'
I'm simply trying to test a script that needs to run FIRST during the enrolment process. As is common when scripting, wee mistakes cause the execution to fail. The problem is, if the script fails, I might as well not even finish the enrolment process.
Does it really mean that I need to reformat my hard drive and re-install macOS each time I want to test this??? Yeah, I can run it in the command line on a test bench machine, but the whole process of re-enrolling is maddeningly slow! Someone PLEASE tell me there's a way to get the computer to re-enrol without reformatting the hard drive. There used to be a method where deleting the user from dscl then removing the home folders, then removing the .setupcomplete file from somewhere in etc, but the computer STILL thinks it's enrolled.
My experience is telling me that the only way is to reformat the whole computer. ...and that just stinks when just trying to test an enrolment profile.
Help!
-Graham
