Windows Server2012/2018 Scheduled Task Settings

question

1. Where is the Windows Server 20012 scheduled task configured?

2. Can Windows Server 20012 be configured to execute my task every minute or every hour?

The answer is: yes!

First of all, Windows Server 20012 is very different from other server operating systems and Windows Server 2003. The name of the scheduled task is that "Task Scheduler" is not in the control panel, but in "Administrative Tools".

Since the server needs to do some tasks, execute it regularly, write the program yourself, it is troublesome, so BAT is used instead. Many people on the Internet are talking about how to configure it every minute. Today we will configure it.

Steps

  1. In Administrative Tools, find "Task Scheduler" and double-click it, as shown below:
    write picture description here

  2. Open "Task Scheduler" - click "Task Scheduler Library" and you will see "Create Basic Task" and "Create Task" in the action item on the right, as shown in the figure:
    write picture description here

  3. Click "Create Task" as shown in the figure: fill in the corresponding name and check the necessary conditions
    write picture description here

  4. Select the "Trigger" option, click "New", and create the task execution time. After the "Repeated task interval" is selected, there is a time to choose, whether it is hourly or every minute, you can choose it yourself, then modify the time, and then confirm.
    write picture description here

  5. Then configure the "operation" that needs to be performed, that is, select the written program or the BAT file.
    The important configuration here is that after selecting the BAT file, in "Start at (optional)", you must fill in the directory where the corresponding executable program or BAT file is located, otherwise the execution will be unsuccessful.
    write picture description here
    Special note: I was almost cheated, thinking that Windows scheduled tasks are less accurate than minutes, mainly because there is no "1 minute" option to the right of "Repeat interval (P)", as shown in the figure below:
    write picture description here
    In fact, it is in addition to In addition to the drop-down selection, you can also manually modify the time value, such as "1 minute" above!!!

  6. After adding, the added scheduled task will appear in the list bar.
    write picture description here

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324653150&siteId=291194637