I need to make sure machines don’t reboot if a user is logged in, even outside of business hours. Short of setting the RebootPreference in every individual action, I don’t see a way to set the RebootPreference for a whole session to Suppress if a user is logged in.
I’d love this too. At the start of a maintenance session it would be awesome if the consent task could pop up and say “We need to do some updates, can we proceed?” and you can give a response like “No”, “Yes, and restart my computer as required”, and “Yes, but don’t restart my computer”.
(An “Ask me again in a couple of hours” option would be awesome too but I can see why that would be hard without a desktop agent)