Skip to main content

Hi all,

  Referring to this macOS installer script.

macOSUpgrade/macOSUpgrade.sh at master · kc9wwh/macOSUpgrade · GitHub

  This script works fine for Intel Macbook upgrading to macOS Monterey 12.0.1.

  But it does not work with Apple Silicon Macbook 😞

  When attempting, I get the following error:

Error: failed to authorize for installation. Provide a password with --stdinpass or --passprompt.
By using the agreetolicense option, you are agreeing that you have run this tool with the license only option and have read and agreed to the terms.
If you do not agree, press CTRL-C and cancel this process immediately.

Investigating further, I run the following in a M1 Mabook's terminal.

/Applications/Install\\ macOS\\ Monterey.app/Contents/Resources/startosinstall --agreetolicense --nointeraction --forcequitapps
Error: A method of password entry is required.
Usage: startosinstall

.....

The error suggests I need to supply admin username and password via 
--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.

 

I want JAMF to execute this. I DO NOT want to need to supply admin account and password.

Anyone got any suggestions?

I've used this script successfully in the past with Monterey but having issues with Ventura. The MacOS Ventura installer is present on the Mac and it's starts ok but then never quits (as in reboots to install the actually update).

Anyone else come across this?


I've used this script successfully in the past with Monterey but having issues with Ventura. The MacOS Ventura installer is present on the Mac and it's starts ok but then never quits (as in reboots to install the actually update).

Anyone else come across this?


I've been using it with Ventura, but I have had occasional instances that sound like what you describe (on both Monterey and Ventura).  In our environment, it seems it's tied to high uptime, so I'm just asking everyone to restart before they run the script.  Haven't had time yet, but I'm also going to play with adding kickstart to this script or maybe even running a "pre" install script that runs kickstart and clears the update plist...it's cumbersome, though.  


I've been using it with Ventura, but I have had occasional instances that sound like what you describe (on both Monterey and Ventura).  In our environment, it seems it's tied to high uptime, so I'm just asking everyone to restart before they run the script.  Haven't had time yet, but I'm also going to play with adding kickstart to this script or maybe even running a "pre" install script that runs kickstart and clears the update plist...it's cumbersome, though.  


Thanks for letting me know. I will try to restart first and see how it behaves.


So i know this post is about a year old, but im trying to use this scrip on an Appel Silicon laptop, and it just gets stuck on the Jamf Helper screen saying to wait.

The password prompt worked fine no issues, but then it just sits here, Jamf policy says it completed, i have it download the Ventura Installer first and put it into the Applications folder, i know that worked because the Ventura icon is showing on the helper screen. then run this script and nothing it has been over 1 hour now since the installer downloaded.

How are you guys initiating this script with a policy?


So i know this post is about a year old, but im trying to use this scrip on an Appel Silicon laptop, and it just gets stuck on the Jamf Helper screen saying to wait.

The password prompt worked fine no issues, but then it just sits here, Jamf policy says it completed, i have it download the Ventura Installer first and put it into the Applications folder, i know that worked because the Ventura icon is showing on the helper screen. then run this script and nothing it has been over 1 hour now since the installer downloaded.

How are you guys initiating this script with a policy?


AtillaTheC is my hero for this base script - it was a life saver.  I've been using it for a while with great success.  Recently I made some modifications to address some of the more common issues we were seeing with it hanging on that screen.  

My updated logic checks the password against the Keychain (instead of just verifying that the same password was entered twice), checks for sufficient available storage, checks uptime (won't proceed if the machine hasn't been restarted in [choose the number] of days, make sure the installer is in place in the /Applications directory (I run a separate policy to cache the installer first so that the update takes less time for the end users), and verifies power is connected...all that really helped with consistency for us. 

There is the fact also that JamfHelper is inherently glitchy in full screen mode, so you can either set it to not run in full screen, or if it hangs, just Command + Q to quit out of JamfHelper and the installer, from my observations, usually finishes fairly soon after.  

Also been trying to find time to swap from JamfHelper calls to using swiftDialog, which I think would be more reliable. 


Just use the Remote command Option for those. 


Where is the Remote Commands? I cant find it in my Jamf Pro portal.


Where is the Remote Commands? I cant find it in my Jamf Pro portal.


Remote Commands = select Smart or Static Groups -> View -> Action -> Send Remote Commands.

Reply