Score:1

How can I get the scheduled shutdown time in Windows?

ma flag

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)?

Score:1
sm flag

https://superuser.com/questions/317051/in-windows-7-how-do-i-know-when-a-computer-is-scheduled-to-be-shutdown

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.

ph flag
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - [From Review](/review/late-answers/540602)
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.