I was wondering if anyone can point me to a resource or a script that I can run via policy using Jamf Helper that will check the version of the installed O/S and if it's not equal to the latest we're supporting will advise the user how to upgrade and will potentially remind them once every week until it's done.
I do not want to force the upgrade just remind users and give them the steps to update ie: Apple Menu-About This Mac-Update.
If there's a better way to do this without a script I'm also open to that alternative but I think Jamf Helper might be the best way.
Thanks in advance!
@MBlank You could build a workflow with Jamf Helper, but Nudge (https://github.com/macadmins/nudge) is pretty much the choice for reminding users to upgrade these days. Be sure to check out the Jamf Pro Guide section in the Wiki (https://github.com/macadmins/nudge/wiki/Jamf-Pro-Guide)
Smart group based on build number you want and.....
#!/bin/bash #Jamf Helper JAMFHELPER=`/Library/Application\ Support/JAMF/bin/jamfHelper.app/Contents/MacOS/jamfHelper -title "Message From Security" -icon /usr/local/images/XXXX.png -windowType utility -timeout 180 -description "A security update is available. A macOS Monterey update is available for installation in System Preferences. Please update Monterey as soon as possible to keep your device in compliance and access some great new features from Apple. Please contact support.XXXX.com if you have any questions. " -button1 "OK" -defaultButton 1 ` echo "jamf helper result was $JAMFHELPER"; if [ "$JAMFHELPER" == "0" ]; then open /System/Library/PreferencePanes/SoftwareUpdate.prefPane exit 0 else echo "no response"; exit 0 fi
Honestly, keep it stupid simple.
Just know a notification without any form of teeth is really pointless. I recommend coming up with something to back this notification if users don't comply, because they wont comply.
Writing a script to just present a message is fairly easy. You can get as complex as you like. For example give them buttons to click, and echo the result of which button they click to a log. You can use this as acknowledgement if needed down the road. You can also have JAMF Helper open system preferences based on the button the user clicks rather than having to tell them where to go in the message.
For simple Jamf helper messages I like to use JAMF Helper Creator. GitHub - BIG-RAT/jhc: jamfHelper Constructor
/Library/Application\ Support/JAMF/bin/jamfHelper.app/Contents/MacOS/jamfHelper -description "Please Open System Preferences/Settings, select General, select software update, and intsall all available updates." -windowType hud -cancelButton 2 -defaultButton 2 -title "Your Mac is out of Compliance, run OS updates." -heading "MacOS Compliance" -button1 "Understood" -button2 "I'm lazy and dont want to run OS updates"
In the JAMF 300 resources section 14 covers JAMF Helper and in JAMF 400 section 6 covers JAMF Helper.
Lesson 6 - Course Resources | Jamf (This one tells you how to do return values based on a user response to do things like run policies, open files/panes, and generate logs files)
PS I much prefer JAMF helper over Nudge.