Suppose I schedule a shutdown/restart in Windows, e.g.
shutdown /r /f /t 300
Is there a way that I can query how much time is left or at what time the restart will happen?
I can abort the shutdown,
shutdown /a
so, I presume that Windows is keeping track of this independently of the shell I used to schedule the shutdown.
How can I get this information? Basically, I'd like to be able to know how much time is left (or if there's an active shutdown currently scheduled)?