If you have executed the correct command and the timer is counting down, you can abort the shutdown before the hour is up by running:
shutdown -a
(The -a stands for Abort).
For the non-admins in the room, let’s parse that command:
On the surface, this looks like a sysadmin’s ultimatum: “The machine dies in 60 minutes. Save or perish.” shutdown s t 3600 exclusive
But I’ve started using this command on myself. Every single day.
The -t 3600 flag creates an exclusive deadline. Unlike a calendar reminder (which you snooze) or an alarm (which you turn off), a shutdown timer is absolute.
When I run this command at 3:00 PM, something psychological happens. I look at the clock. I see 3600 tick down to 3599. If you have executed the correct command and
Suddenly, I stop context switching. I stop checking Hacker News. Why? Because the computer isn't asking me to stop working; it is telling me it is going to sleep.
This forces three specific behaviors:
Windows does not offer a simple GUI to view pending shutdown timers, but you can query them: (The -a stands for Abort )
Alternatively, use PowerShell:
Get-WinEvent -FilterHashtable @LogName='System'; ID=1074 | Select-Object -First 5 | Format-List Message
This displays recent shutdown requests, including the comment string.