Hi, does anybody have a simple script to notify users to check for updates and then takes them to the default software update in sys pref? I don't want to use nudge or other software and I don't want to force the update at this point. Basically just a nagging reminder at a set interval.
First idea that comes to mind is to "open" the system pref pane via script. That should just take the user directly to the sofware update interface.
Might need to script a Jamf Helper message or similar if you want more user explanation.
Here is a script I just wrote that should do what you're asking for
#!/bin/sh #quick and dirty jamfhelper script to prompt users to run macOS updates JAMFHELPER="/Library/Application Support/JAMF/bin/jamfHelper.app/Contents/MacOS/jamfHelper" # Get the user's selection RESULT=`"$JAMFHELPER" -windowType utility -title "You Have Pending Updates" -description "You have a number of updates that are still pending for your Mac please update now" -button1 "Show me" -button2 "Cancel"` if [ $RESULT == 0 ]; then # do button1 stuff open /System/Library/PreferencePanes/SoftwareUpdate.prefPane echo "Show me was Pressed" elif [ $RESULT == 2 ]; then # do button2 stuff echo "Cancel was pressed!" fi
But I still think that you should look into Nudge. You don't need to get complicated with it the only properties you need to use are requiredInstallationDate and requiredMinimumOSVersion
I have only tested it from self-service, and it's working from there.
But a quick search turned up this Jamf nation post about Jamf helper scripts failing when set to check-in - https://community.jamf.com/t5/jamf-pro/jamfhelper-from-check-in-hanging-script/m-p/116074