Table of Contents
Press Windows + R, enter shutdown -s -t 1800, and click OK to shut down in 30 minutes. To cancel before the timer expires, run shutdown -a.

Set the delay in seconds
Use shutdown -s -t SECONDS, replacing SECONDS with a number. A positive delay can cause apps to close when the timer expires, so save your work before setting it.
- 5 minutes:
shutdown -s -t 300 - 10 minutes:
shutdown -s -t 600 - 30 minutes:
shutdown -s -t 1800 - 1 hour:
shutdown -s -t 3600 - 2 hours:
shutdown -s -t 7200


The same command works in Command Prompt and PowerShell. Press Enter to start the countdown. Closing the notification or terminal leaves the timer running.


Cancel or replace a pending shutdown
Open Run again, enter shutdown -a, and click OK. To change the delay, cancel the first timer and then run the new command.

Reader Comments 0
Sign in with email or Google to join the discussion.