Posted in : Windows, Windows Server By Sebastian Stegrin Translate with Google ⟶

3 years ago

There are many useful things that you can do in Task Scheduler inside Windows, but how do you actually configure it? I will try to guide you through it if this is your first time using it.

 

Task Scheduler is the perfect application to use when you want the computer to make things for you. With that said you often configure something one time and then it will take care of itself, more or less. Try to see this as a time saver, or a nice colleague that does these boring tasks for you, but you have to give the instructions. I will use one of the most used tasks as an example down below, and that will be to restart a computer a specific time once per week.

The below instructions will only work if you are a local administrator on the computer. Otherwise you have to assign this task to another local user, like System.

  1. Go to your start menu and look for Task Scheduler.
  2. In the left pane you will find different folders, these are used by different applications or services. For our task we will use the default Task Scheduler Library.
  3. You will probably notice that you already have several tasks in this folder. If you aren’t familiar with these tasks I recommend you to not touch them.
  4. Now start of by pressing Create Basic Task… button in the right pane.

    1. Name: Weekly reboot
    2. Description: This task will reboot the computer every Saturday at 14.00.
  5. You have to choose how often the task should be repeated, I choose Weekly.
    1. You will also pick what day and time you want the task to be triggered.
      1. Recur every: 1 weeks on Saturday
  6. At the next step called Action you will pick Start a program.

    1. Program/Script: shutdown.exe
      1. This is a built-in application in Windows that handles the shutdown process based on the given arguments.
    2. Add arguments (optional): /r /f /t 0
      1. /r = Restart
      2. /f = Force
      3. /t 0 = Time in seconds before the restart will happen, in this case 0 seconds
    3. When this is done you can finish the wizard.
  7. The scheduled task is almost complete, there are still one more thing we want to do by right click your newly created task and enter Properties.
    1. Go to Security Options and switch to Run whether user is logged on or not.
    2. To be on the safe side you can also switch to Windows 10 at the bottom.

That should be it!

There are several other options that you can add to this task, but this is a good way to start.

You can also create your own Powershell-scripts and do more advanced things, like restart services or/and applications.

 

If there’s any questions regarding this article feel free to contact me at https://www.linkedin.com/in/sebastianstegrin/

Tags : How to, Microsoft, task scheduler, Windows 10, Windows Server

Personlig rådgivning

Vi erbjuder personlig rådgivning med författaren för 1400 SEK per timme. Anmäl ditt intresse i här så återkommer vi så snart vi kan.

Add comment

Your comment will be revised by the site if needed.