Windows timed restart (for server R2)

Source: Internet
Author: User

Look directly at the link bar: https://jingyan.baidu.com/article/2d5afd69dd8e9d85a2e28eb7.html

    1. Start menu to find "Scheduler";

    2. 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. 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.

    4. 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

    5. 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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.