Trying to create URL that takes user to System Preferences > Software Update

edelfert
New Contributor

I'm trying to set up Nudge which is a program that pings users to update their computer. I have everything in the JSON file setup, but I can't seem to find a way to create a URL for the button "Update Now" to take them to software update. The default uses "munki://updates" and the instructions take you to Jamf Self Service for macOS URL Schemes which seems to only take the user to Self Service? Would you have to make the button point to Self Service and create a link in Self Service that takes the user to Software Preferences? 

Forgive me if this is simple, I'm new to Jamf (and IT) and Google doesn't seem to have an answer. 

Thanks!

 

9 REPLIES 9

mm2270
Legendary Contributor III

Maybe something like this would work:

file:///System/Library/PreferencePanes/SoftwareUpdate.prefPane

I believe that should open the SoftwareUpdate.prefpane in the System Preferences app.

pkleiber
Contributor

Hi @edelfert, here is a good article regarding Making Links Launch Mac Apps & Preferences (And a Script to List URL-Callable PrefPanes & Their Addresses)

https://www.linkedin.com/pulse/creating-web-links-launch-mac-apps-preferences-script-nick-tong/

You can create a hyperlink to x-apple.systempreferences:com.apple.preferences.softwareupdate on a web page or in an e-mail like this:

<a href="x-apple.systempreferences:com.apple.preferences.softwareupdate">Click to be taken to Software Update on Your Mac</a>.

 

Fluffy
Contributor III

The default is supposed to be blank, according to the wiki. For my instance, I left all of the elements blank and used the stock Simple Mode UI. Clicking on the update button would bring up the Software Updates window. It is worth noting I did this with a Configuration Profile, not a JSON schema.

Might be worth a shot leaving actionButtonPath unconfigured in your schema.

swapple
Contributor III

When we run this command, it pops open the update page.  

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

 BUT I would like to get into the More Info Page.  How do we get it to pop up that window??

 Screen Shot 2021-12-18 at 4.04.12 PM.png

mm2270
Legendary Contributor III

@swapple It would be nice if we could direct users to that sheet in Software Update, but I sincerely doubt that's going to be possible to do in a scripted/automated way.

You can thank Apple for making it so things like available updates are now basically hidden behind a link, instead of keeping it simple like it used to be in older versions of Software Update. Each time Apple touches the software update process, they manage to screw it up even more than the last time. It's already at the point of being nearly unusable as it is.

Apparently someone at Apple is convinced that complete and utter morons use their computers and they must dumb things down lest they confuse the poor befuddled simpletons with something like a simple list of available updates for their computer. 🙄

NGuedes
New Contributor III

Hi

Is it possible to force Software Update to open a specific AppStore link?
For example, I want Software Update to open Monterey app installer link instead of showing the latest available

 

Best regards

SchultzMD
New Contributor

i was able to find the correct URIs for several versions of MacOS

 

macOS Catalina
open "x-apple.systempreferences:com.apple.preferences.softwareupdate?client=bau&installMajorOSBundle=com.apple.InstallAssistant.Catalina"

macOS Ventura
open "x-apple.systempreferences:com.apple.preferences.softwareupdate?client=bau&installMajorOSBundle=com.apple.InstallAssistant.macOSVentura"

macOS Big Sur
open "x-apple.systempreferences:com.apple.preferences.softwareupdate?client=bau&installMajorOSBundle=com.apple.InstallAssistant.macOSBigSur"

macOS Monterey
open "x-apple.systempreferences:com.apple.preferences.softwareupdate?client=bau&installMajorOSBundle=com.apple.InstallAssistant.macOSMonterey"

 

i was able to find these based on what i read here https://pspdfkit.com/guides/ios/faq/finding-the-app-bundle-id/

hope this helps

DMH2000
Contributor
From oit.ncsu.edu: 
Here is a an easy one line unix command string that can be used in a Files and Processes option in the Execute Command field to show a reminder to do system updates. 
 
/usr/bin/osascript -e 'display dialog "University Regulation 08.0.14 requires all computer OS updates to be installed. Please install the waiting updates now to remain secure." with title "SECURITY UPDATES REQUIRED!!" with icon stop giving up after 60' && /usr/bin/open x-apple.systempreferences:com.apple.Software-Update-Settings.extension
Scope this policy to a Smart Group with Criteria of “Number of Available Updates Is More Than 0” and set the frequency to Daily (or less).  This will put up a dialog that is always on top and open software updates for macOS 13 + automatically searching for new updates on OK.  The dialog will dismiss with OK in 60 seconds opening the software update System Setting by default.
 
I have a collection with a criteria of say "Has MacOS Version ≤ 13.3.1".  I would scope the new Policy to those Macbooks.  No need for a 3rd party app like Nudge.

hepvd
Contributor

thanks I was looking to open the prefs pane ASU directly.