Shut Down Your Computer Using Task Scheduler (Windows)

In Windows, the Task scheduler is pretty much advanced now. You can now add any number of triggers and actions to be taken for any particular thing you would like to do. Since most of the time I forget to shut down my Windows computer, Task Scheduler is the easiest way to do it. This works both on Windows 11 and Windows 10.

Shut Down Your Computer Using Task Scheduler (Windows)

Shut Down Your Computer Using Task Scheduler (Windows)

Press the Windows key, and type Task Scheduler. Once it appears in the list, click to open it.

  1. Click on the Action button, and choose to create a basic task.
  2. Select the time when you want to shutdown (Triggers)
  3. Then under actions, select the executable or shutdown EXE, which is available in the C:\Windows\System32 folder.
  4. IN the actions dropdown, select Start a program. You can also choose to send an email before this happens.
  5. Add the following arguments to it “-s-f-t 0” like the image below, and you are all set.
  6. Set the time of the task around the time you go to sleep or 30 minutes later.

Shut down your computer using Task Scheduler (Windows)

Now you need not worry if your computer did shutdown at night or not. However, if you are working late, don’t forget to disable it or run SHUTDOWN -A to abort the shutdown. You will also have to disable it if you are planning to download something that night.

That said, if you are looking for even more actions to perform like killing a program, automatically copy files, remote shutdown, etc., I will suggest you use Z-Cron. Please read how to use it and download it from here.

It’s a small program that makes using the Task scheduler a lot easier. The interface is simple. You can add a UAC prompt, add external commands. It also maintains a log file where you can see the success and failure rates.

I hope the post was easy to follow, and you are now making sure the computer is shut down using the task scheduler in Windows.

Why you should shut down your computer?

A restart or shutting down the PC once in a while is a good idea. It gives the system a chance to clean the boot and also run fixes as it starts the next time. It also shuts down some of the programs which keep running in the background blocking the memory.

Is it better to sleep or shut down the PC?

When PC gets into sleep mode, it uses the least amount of energy. Hence a lot of people leave the PC in sleep mode so they don’t have to re-open all apps, browser tabs, and so on. So you can keep in sleep mode, but it’s a good idea to shutdown once in a while.

Does shutting down a laptop by force damage it?

Modern hardware has checks in place to keep the electronic part safe from sudden voltage change. So while the hardware may not get damaged, any file or folder which is in use when this happens can result in data corruption.

4 COMMENTS

  1. This does not work on a Dell Inspiron 1525 running Vista Home Basic SP1. Tried changing a bunch of options, I dunno why, not smart enough to figure it out…I’m just sayin’.

  2. I’m not sure if it’s just on an updated version of Vista, but the next tab, conditions, let’s you choose to start the task only when idle for x minutes.

  3. You can also tell Windows Vista or Windows 7 to sleep at a specified time using the Task Scheduler.

    Create a scheduled task with the command:
    rundll32.exe

    And the arguments:
    powrprof.dll,SetSuspendState 0,1,0

    If hibernate is active this will hibernate your computer, thus putting it into a “deep” sleep. Turning off hibernate will apparently put it into a “normal” sleep.

LEAVE A REPLY

Please enter your comment!
Please enter your name here