We've built a workflow to upgrade our Catalina Macs to Monterey which is running pretty smoothly apart from 1 step, after a reboot that is part of the upgrade we're seeing the password prompt, which I assume is to unlock the FV disk, but it is filling the username field with System Administrator and prompting for a password reset.
The command our script is running is a pretty straightforward one - /Applications/Install macOS Monterey.app/Contents/Resources/startosinstall --agreetolicense --forcequitapps
I think the reason we're seeing the System Administrator thing is because the script is running as root but does anyone have any suggestion about how we get round it (without enabling the root account for login)?
Solved! Go to Solution.
I had a bit of a look at this earlier and from I can see it is still running startosinstall with the same arguments we are so not sure it would help?
I also don't really want to introduce another script as the rest of the workflow we have works nicely - it upgrades some of our core agents, downloads the installer and notifies the user etc.
I have to +1 this. After much searching, and trial and error, I decided to use Graham Pugh's 'Erase and Install' script as well. It made life so much easier (ESPECIALLY for M1 Macs) for upgrading all of our systems throughout our org.
@awginger I highly suggest you test out Graham Pugh's script. I tried the exact thing you are trying to do and ran into several issues.
For M1 Macs, try something like this instead
adminName=$4 adminPass=$5 echo $adminPass | '/Applications/Install macOS Monterey.app/Contents/Resources/startosinstall' --nointeraction --agreetolicense --forcequitapps --user $adminName --stdinpass