We’d like to automate Windows reboots, but we can’t until we can find a way to perform some actions before a reboot. For example, when rebooting a web server it would be nice to notify the load balancer to take the web server out of the pool. While there are some Windows “shutdown” events we can monitor for the problem with them is they typically come after the shutdown process has started.
It would be great if we could get a notification (on the machine being rebooted) right before Automox is going to start the reboot process. For example just check for a well known program name and if it’s there call it, if not no harm, and if we want to use this exit point we’ll put a program there.
Or what other ways have people found to perform pre-shutdown operations on Windows boxes?