Unable to update mac with script

expand collapsive

Hi there,

I have the same Problem, but the script you shared didn’t work out yet…
I used the script of another Discussion:

softwareupdate –fetch-full-installer –full-installer-version 12.3

echo <Password> |’/Applications/Install macOS Monterey.app/Contents/Resources/startosinstall’ –agreetolicense –nointeraction –forcequitapps –user <adminuser> –stdinpass

 

link to the disussion: https://www.hexnode.com/forums/topic/unable-to-update-mac-with-script/#post-17699

Maybe you have an idea how to change the script so it works ?

The Output was:

 

startosinstall: An extraneous argument was specified with option ‘user’

Usage: startosinstall

Arguments
–license, prints the user license agreement only.
–agreetolicense, agree to the license you printed with –license.
–rebootdelay, how long to delay the reboot at the end of preparing. This delay is in seconds and has a maximum of 300 (5 minutes).
–pidtosignal, Specify a PID to which to send SIGUSR1 upon completion of the prepare phase. To bypass “rebootdelay” send SIGUSR1 back to startosinstall.
–installpackage, the path of a package (built with productbuild(1)) to install after the OS installation is complete; this option can be specified multiple times.
–eraseinstall, (Requires APFS) Erase all volumes and install to a new one. Optionally specify the name of the new volume with –newvolumename.
–newvolumename, the name of the volume to be created with –eraseinstall.
–preservecontainer, preserves other volumes in your APFS container when using –eraseinstall.
–forcequitapps, on restart applications are forcefully quit. This is the default if no users are logged in.
–usage, prints this message.
–user, an admin user to authorize installation.
–passprompt, collect a password for authorization with an interactive prompt.
–stdinpass, collect a password from stdin without interaction.
–reducedsecurity, configure target volume’s security policy as Reduced Security (will prompt for authorization after reboot).
–cloneuser, Copy account settings for the owner provided with –user when installing to a new volume.

Example: startosinstall

 

All Replies

Be first to reply this topic