Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Schedule a Windows Shutdown with CMD

Use the Windows shutdown command to turn off or restart a PC after a chosen delay, cancel the timer, and avoid losing unsaved work.

Table of Contents

Windows can schedule a one-time shutdown with the built-in shutdown command. Open Command Prompt or the Run dialog and enter shutdown /s /t 3600 to shut down in 3,600 seconds, or one hour. Save your work first: when the timeout is greater than zero, Windows also forces running applications to close, which can discard unsaved changes.

Scheduling a Windows shutdown with Command Prompt

Schedule a shutdown from Command Prompt

  1. Press Windows + R, enter cmd, and select OK. A normal Command Prompt is sufficient for shutting down your own PC if your account has the required permission.

Opening Command Prompt from the Run dialog

  1. Enter the command below and press Enter:
shutdown /s /t 3600

Entering a timed shutdown command

Windows displays a notification showing that sign-out or shutdown is scheduled.

Windows scheduled shutdown notification

Choose the correct number of seconds

The command has three important parts:

  • /s tells Windows to shut down.
  • /t sets a timeout.
  • The number after /t is the delay in seconds.
DelaySecondsCommand
10 minutes600shutdown /s /t 600
30 minutes1,800shutdown /s /t 1800
1 hour3,600shutdown /s /t 3600
2 hours7,200shutdown /s /t 7200

Use a whole number from 0 through 315,360,000. A zero-second timeout starts the shutdown immediately. The same syntax works in recent Windows versions; Microsoft's shutdown command reference lists every supported option.

Cancel a scheduled shutdown

Before the countdown expires, open a new Command Prompt or Run dialog and enter:

shutdown /a

Entering the shutdown abort command

Windows confirms that the pending shutdown has been canceled.

Notification that the scheduled shutdown was canceled

If you need more detail about stopping an active timer, see how to cancel automatic shutdown in Windows.

Useful variations

  • Restart in 15 minutes: shutdown /r /t 900
  • Show command help: shutdown /?
  • Add a visible comment: shutdown /s /t 1800 /c "Shutting down after the task finishes"

A timer begins when the command is run; it is not a recurring schedule and it does not detect whether a download or export has completed. If a download manager offers a verified “shut down when finished” option, that event-based setting may be more suitable. For example, TipsMake has separate steps for shutting down after an IDM download.

Important cautions

  • Save documents and close applications before the deadline. With a positive timeout, forced app closure is implied by Windows.
  • Do not use /f unnecessarily; it explicitly forces applications to close and can lose unsaved work.
  • A shutdown timer may interrupt an update, backup, file transfer, video export, or disk operation. Estimate enough time or use software that can shut down after the specific task completes.
  • The PC must remain awake for the timer to run. Sleep or hibernation changes how unattended tasks behave.

For an immediate manual shutdown, use the Start menu or one of the Windows shutdown keyboard shortcuts instead of creating a timer.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.