Posted on 09-08-2022 01:10 PM
Hi,
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!
Posted on 09-08-2022 01:48 PM
@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)
Posted on 09-08-2022 02:38 PM
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
Posted on 09-22-2022 07:08 AM
Thanks for sharing this. I might go with this approach and see the results we get or don't.
Any idea how to add a clickable HTML link to this script?
I tried <a href="link.com"</a> but it's not clickable. Or is this not possible?
Posted on 09-22-2022 07:50 AM
@MBlank You can't put a clickable link into the text displayed by jamfHelper. You would have the use a button in the message being displayed that opens the intended link.
Posted on 09-22-2022 08:05 AM
you can make JAMF connect do a thing based on what option (button) a user picks. One of those could be opening a link, but that is about as close as you can get.
Posted on 09-12-2022 05:27 AM
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 14 - Course Resources | Jamf
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.
09-21-2022 07:31 AM - edited 09-21-2022 07:33 AM
I am a slightly different admin: I do not remind, I force the update with N deferrals allowed.
Consider the first deferral a reminder.