How can I enable automatic shutdown in Windows 10?

How can I enable automatic shutdown in Windows 10?
I have been looking for a way to automatically power down my computer after certain tasks are completed or when it has been idle for a while. It can be quite frustrating to find my PC still running after I have left it on overnight, wasting energy unnecessarily. Additionally, sometimes I need my computer to shut down automatically after long download sessions or software updates which often run late into the night. I’m not entirely sure where to find the settings or how to configure them properly to schedule an automatic shutdown. I’m keen to understand the steps and options available for setting this up in Windows 10, including any specific commands, programs, or built-in features that could assist in managing this more effectively.
5 Answers

To enable automatic shutdown in Windows 10 through Task Scheduler, follow these steps:
- Press
Win + S
and type “Task Scheduler,” then pressEnter
. - In the Task Scheduler, click on ‘Create Basic Task…’ on the right-hand side.
- Name your task ‘Automatic Shutdown’ and click
Next
. - Set a trigger for the shutdown, for example, select
Daily
if you want it to occur every day at a specific time, then clickNext
. - Specify the time for the shutdown and click
Next
. - Select
Start a program
, and then clickNext
. - In the
Program/script
field, typeshutdown
and in theAdd arguments
field, type/s /f /t 0
, then clickNext
. - Review the summary and click
Finish
.
This will configure an automatic shutdown at the specified time. You can adjust the settings based on your needs.

Another straightforward method is to use the Command Prompt. Here’s how:
- Press
Win + R
to open the Run dialog. - Type
cmd
and pressEnter
to open the Command Prompt. - Input the command:
shutdown -s -t 3600
and pressEnter
. This schedules a shutdown after 3600 seconds (1 hour). Adjust the number to set a different timer. - To cancel the scheduled shutdown, type
shutdown -a
in the Command Prompt and pressEnter
.
This method is quick but limited to the session you’re working in.

For tech-savvy users, PowerShell scripts offer a versatile method. Here’s an example:
- Open Windows PowerShell as an administrator by pressing
Win + X
and selecting ‘Windows PowerShell (Admin)’. - Use the following script to set up a scheduled task:
powershell
$shutdownTime = (Get-Date).AddMinutes(60)
New-ScheduledTaskTrigger -Once -At $shutdownTime |
New-ScheduledTaskAction -Execute 'shutdown.exe' -Argument '/s /f /t 0' |
Register-ScheduledTask -TaskName 'AutoShutDown' -Description 'Automatically shuts down the PC'
This script schedules a shutdown for 60 minutes from the current time. Adjust the timing by changing theAddMinutes
value. - Press
Enter
to execute.
PowerShell scripts offer flexibility and are ideal for those comfortable with scripting.

Finally, a combination of a desktop shortcut and Task Scheduler can also work seamlessly:
- Create a shutdown shortcut on your desktop by right-clicking and selecting
New > Shortcut
. - In the shortcut location, type
shutdown.exe -s -t 00
and clickNext
. Name your shortcut (e.g.,Daily Shutdown
) and clickFinish
. - Use Task Scheduler to run this shortcut:
- Open Task Scheduler and create a new basic task.
- Set a trigger and action pointing to the shortcut you created.
- Complete the setup and save the task.
This method integrates a daily shutdown setup with minimal commands and steps.

For those who prefer a graphical user interface, a third-party tool like ‘Wise Auto Shutdown’ can make the process simpler. Here’s how you can set it up:
- Download and install Wise Auto Shutdown from the internet.
- Open the program and select ‘Shut Down’ as the action.
- Specify when you want the shutdown to occur (after a specific period or at a scheduled time).
- Click
Start Task
to activate the automatic shutdown.
Using third-party software often provides a user-friendly interface and more customization options compared to built-in tools.