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)?
답변1
https://superuser.com/questions/1028374/determine-whether-a-shutdown-is-pending
Check out the above links for reference.
I did some google FU, and there does not a appear to be a direct way to get the information you want. You ether have to some querying with power-shell or look in the event logs.