https://github.com/darklordbrock/scripts/blob/master/UW-Milwaukee/mySWUcheck.sh
I want to share this workflow I have setup. I have a smart group that will add machines that need a software update. The smart group gets a policy that runs this script at log out. I will ask the user during logout if they would like to install updates. The user can click NO three times. On the four log out the system will just install the updates.
The script will tell if the updates need to reboot the system or just install. If the updates need to reboot, the script will have the system shutdown when they are done installing.
With this being a log out script I thought it would be best to have the machine shutdown on a reboot needed. This way if the person is going to shut their machine down at the end of the day they can let this run and just go home, knowing the machine will shutdown with it is done.
I have started to notice since I have been using this that most people do not log out or shutdown very often. I'm going to try to think of a good way to notify a user that they have updates while the system is up.