Skip to main content
Question

How to Upgrade macOS with minimal user interaction (if any)


Forum|alt.badge.img+3

I am fairly new to Jamf, so this may be beginner level ðŸ˜„

What is the best way to upgrade (Big Sur to Monterey) macOS? I understand that we need to push that "Install Monterey macOS" app to the devices, but then how can I forge that app to run? I have seen some stuff about scripting, but the stuff for Jamf School does not seem to actually work. What is the best solution you have come up with? It would be great to have the OS install at any time, and then only install outside a certain set of hours (after 5pm, before 8pm)

3 replies

Forum|alt.badge.img+11
  • Employee
  • 59 replies
  • March 24, 2022

I have found that the erase-install.sh script from Graham Pugh works well.

 

https://github.com/grahampugh/erase-install


Forum|alt.badge.img+5
  • Contributor
  • 30 replies
  • March 24, 2022

I create 2 policies one to cache the installer (DMG made in Composer) and another to do the install via Self Service for the user to kick off. I use this in files and processes under execute

command sudo /Applications/Install\\ macOS\\ Monterey.app/Contents/Resources/startosinstall --agreetolicense --nointeraction && killall Self\\ Service

It is purely an upgrade since we do not and cannot use the erase install option.

 


Forum|alt.badge.img+3
  • Author
  • New Contributor
  • 2 replies
  • March 24, 2022
awoodbury wrote:

I have found that the erase-install.sh script from Graham Pugh works well.

 

https://github.com/grahampugh/erase-install


Thatnks @awoodbury . I tried that script but keep getting the error below. It works great if I run it directly from the devices terminal, but not when running through Jamf School. Did you run into this?

[erase-install] attempting to terminate the 'caffeinate' process - Termination message indicates success
   [erase-install] ERROR: 'caffeinate' could not be killed

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings