Shut down Windows on a timer
Use shutdown /s /t to make Windows power off automatically after a chosen number of seconds, and shutdown /a to cancel it.
01Command
$ shutdown /s /t 360002What it does
The /t switch accepts a delay in seconds, so /t 3600 schedules a shutdown in one hour and /t 300 in five minutes. Windows shows a notification with the exact time it will shut down. If your plans change, shutdown /a cancels the pending shutdown while the countdown is still running.
03Risk
04Undo
$ shutdown /a05Sources
- Shutdown.exe - Shutdown the computerEvidence: Documents /s (shutdown), /t xxx (time-out period in seconds before shutdown) and /a (Cancel a system shut down during the time-out period).
- shutdown (Windows Commands)Evidence: Reference page lists /s to shut down the computer, /t <seconds> to set the time-out before shutdown, and /a to abort a pending shutdown.
Last verified: 2026-09-19 · Category: System & Settings
06Related solutions
Purge cached DNS lookups so Windows re-resolves hostnames from scratch — the fix for 'the new server is live but my browser still hits the old one'.
One command that shows OS version, install date, boot time, memory, network adapters and installed hotfixes.
Built-in Windows command to compute MD5, SHA1 or SHA-256 hashes of any file.