Windows can schedule a one-time shutdown with the built-in `shutdown` command or create recurring shutdowns with Task Scheduler. Save work first because an automatic shutdown can close applications.
Steps
- For a one-time countdown, open Run or Terminal and enter `shutdown /s /t SECONDS`, replacing SECONDS with the delay you want.
- For example, 3600 schedules shutdown in one hour.
- To cancel a pending countdown before it occurs, run `shutdown /a`.
- For a recurring schedule, open Task Scheduler, create a basic task at the desired time, choose Start a program, and use `shutdown.exe` with arguments such as `/s /f /t 0` only if forced closure is truly appropriate.
- Test the task while no unsaved work is open, then review its trigger and conditions.
How it works
The `/f` option forces running applications to close and can lose unsaved data, so omit it when possible. Sleep/hibernate may be more appropriate than shutdown for routine power saving.
Important considerations
Windows 10 is unsupported. Do not download ‘auto shutdown’ utilities for a job Windows can perform itself, and be cautious scheduling shutdowns on PCs that run backups or remote jobs.
Practical guidance
Task Scheduler conditions can prevent a task from running when expected—for example, ‘Start the task only if the computer is on AC power’ on a laptop. Review Conditions and Settings after creating the task. A powered-off PC cannot execute a normal scheduled shutdown task; it must already be running or sleeping in a wake-capable configuration.
Additional details
For a one-time shutdown at a specific clock time, calculate the delay carefully or use Task Scheduler rather than guessing seconds. If Windows is installing updates, allow it to finish normally. Automatic shutdown is inappropriate on a shared/server PC unless all users and background jobs are accounted for.

Kermit Matthews is a freelance writer based in Philadelphia, Pennsylvania with more than a decade of experience writing technology guides. He has a Bachelor’s and Master’s degree in Computer Science and has spent much of his professional career in IT management.
He specializes in writing content about iPhones, Android devices, Microsoft Office, and many other popular applications and devices.