Look directly at the link bar: https://jingyan.baidu.com/article/2d5afd69dd8e9d85a2e28eb7.html
Start menu to find "Scheduler";
- 2 If you cannot create a basic task, it is possible that the "task Scheduler" service in the system does not start, and you can type "Services.msc" in the run to see if the "Task Scheduler" service is set to "disabled" if, Simply double-click it to change the startup type to automatic and reset a scheduled task to execute. Reboot is recommended even if the display is enabled.
1. General
Set Task Name: timed restart;
- 3
2. Trigger, set the time for task execution, and select New. The frequency of execution can be selected, once, daily, weekly and monthly. and set the specific execution time.
If you need to restart multiple times within a day, you can create more than one trigger and set the same method as above.
3. Operation. Sets the program or script content for the restart operation.
Restart the program at: C:\Windows\System32\shutdown.exe
You need to add a parameter (Space delimited):-r-f-T 1
Other: Timed Restart task Settings "-R (Space)-F (space)-T (space) 1" instruction description
-R shut down and restart the computer;
-F force running applications to close without warning;
-T 1 sets the off time-out to 1 seconds.
END
Precautions
- -R (Space)-F (space)-T (space) 1, the middle of the instruction is a space separate
- -T-the time can be set according to the actual situation
Windows timed restart (for server R2)