mpanighetti / install-or-defer

A framework for prompting users of Jamf Pro-managed Macs to install Apple software updates.
Apache License 2.0
147 stars 28 forks source link

Install all updates by default? #11

Closed master-vodawagner closed 5 years ago

master-vodawagner commented 5 years ago

Is there a way to just install all updates silently without user interaction except those needing a restart and then prompt the user to install only the restart update?

Do I need a Restart? --> Yes!! ---> Download update ---> Prompt User
      No
        |
        |

Install Updates with no Prompt to User

mpanighetti commented 5 years ago

In that case I'd recommend only targeting restart-required update smart groups with this script/policy, then for Macs with any [recommended] updates still pending afterward (if they don't require a restart and you don't need to alert the user), just run softwareupdate --install --all as a Jamf Pro script. The advantage of using this script for those situations is that it gives people a chance to save their work/sessions when you're updating an app that doesn't require a restart but does require quitting that app, which could still be UX-disruptive (e.g. Safari security updates).