Posted on 02-26-2021 05:21 AM
Hey Everyone,
So I have a policy setup for OS Updates. All the machines are on Big Sur. So it's a policy enabled in self service to allow users to update. The Software Updates payload points to Apples Software Update Server. Then the Restart payload is on restart if a package or update requires it for both logged in and no user logged in with the current startup disk.
The policy logs show it downloads but nothing actually installs. I attached screenshot of running the policy the first time and then the second time.
Posted on 02-26-2021 09:57 AM
We have gone through similar suitations. softwareupdate -diaR is working as expected but not the Restart payload
Posted on 05-27-2021 06:12 PM
This is happening to us as well with Big Sur, Catalina seems to be working fine.
Posted on 08-04-2021 11:05 AM
i'm having this issue with Big Sur as well. Anyone from Jamf wanting to chime in?
Posted on 08-09-2021 03:34 AM
This could probably be done way better, but here's the script I made now for our environment.
First line installs all applicable updates available, then second line interrupts the user with a button that the computer will restart. Then last line checks again to install any applicable updates with the -R flag for restart. So yes after the user clicks the restart button it will forcefully restart the machine. Though if you just want to install with no restart you can just use the -i and -a flags.
#!/bin/bash
sudo softwareupdate -i -a
osascript -e 'display dialog "Updates installed. Mac will now restart. Please save all your data and close all applications before clicking restart." buttons {"Restart"} default button 1'
sudo softwareupdate -i -a -R
Posted on 08-09-2021 07:44 AM
I think the challenge with this script is that running softwareupdate -iaR again won't restart the computer right away, it will try to "install" the updates again, which may be 5-10 minutes before restarting.
Posted on 08-09-2021 09:46 AM
I stand corrected...this script worked beautifully!! Thank you!