Skip to main content
Question

Customizeable jamfHelper macOS Update Script


Forum|alt.badge.img+6

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.

5 replies

Forum|alt.badge.img+7
  • Contributor
  • 125 replies
  • November 23, 2020

Looks awesome, will check this out - thank you!


Forum|alt.badge.img+6
  • Author
  • New Contributor
  • 2 replies
  • April 30, 2021

Sure thing, @dtmille2 !


Forum|alt.badge.img+11
  • Valued Contributor
  • 164 replies
  • May 24, 2021
        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
Forum|alt.badge.img+13
  • Honored Contributor
  • 223 replies
  • May 24, 2021

Nice; going to look into this


Forum|alt.badge.img+2

Hello guys, see the error code: Stopping execution with error: Error! 1st JAMF input variable null. Please define the desired OS version. Exiting script..

Can you help me?


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