Skip to main content

Hey all,

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)?

I would strongly suggest having a look at Graham Pugh's 'Erase and Install' script - https://github.com/grahampugh/erase-install

It resolved a whole load of similar issues for us and works well in or out of Self Service.


I would strongly suggest having a look at Graham Pugh's 'Erase and Install' script - https://github.com/grahampugh/erase-install

It resolved a whole load of similar issues for us and works well in or out of Self Service.


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.


@awginger 

 

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

 


@awginger 

 

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

 


I tried that and it still gave me the same issue


I would strongly suggest having a look at Graham Pugh's 'Erase and Install' script - https://github.com/grahampugh/erase-install

It resolved a whole load of similar issues for us and works well in or out of Self Service.


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.


I would strongly suggest having a look at Graham Pugh's 'Erase and Install' script - https://github.com/grahampugh/erase-install

It resolved a whole load of similar issues for us and works well in or out of Self Service.


I have just tried this script and whilst it works to update the machine to Monterey I am still getting the same issue with the prompt to reset the password for the System Administrator account.


Ok, so we fixed this one! Weirdly enough we found that it was a Passcode Policy profile that was causing the issue, we descoped the profile and we stopped getting the issue. We then rescoped the profile post-upgrade