Customizeable jamfHelper macOS Update Script

cole_seph
New Contributor II

Hi, all!
Saw some really cool presentations this year at JNUC 2020 and got inspired to share some scripting of my own.

Here's a jamfHelper script that lets you scan machines to see if they're up to date with a particular OS version you've defined. If not, and if the machine has pending updates, send the user a customized jamfHelper prompt. Then, when they click "Ok," open them straight to the Software Update panel in System Preferences. We've found this really helpful for our own macOS patching efforts.

All parameters have been written so you can copy-paste straight into your JAMF scripts section.

You can also use the parameters to:
- Choose not to open Software Update once the user clicks 'Ok'
- Set a custom icon by providing a url to an icon file
- Send them a prompt even if they have the OS Version you're looking for but have pending updates (Helpful for those supplemental updates where a user's OS version is up to date but their patches are not).

The readme explains which parameters do what, as well as provides plenty of other context as to what's going on.

a6ef391403044c19a6d6ef875c86212d

4 REPLIES 4

dtmille2
Contributor II

Looks awesome, will check this out - thank you!

cole_seph
New Contributor II

Sure thing, @dtmille2 !

swhps
Contributor III
        open "x-apple.systempreferences:com.apple.preferences.softwareupdate?client=softwareupdateapp"

So this line opens the update panel in system preferences, how do you open the ... more info panel within the update panel??

Jason33
Contributor II

Nice; going to look into this