Windows timed Restart service

Source: Internet
Author: User

1. Create a new text file and change the file extension to. bat or. CMD (for example, reseth3server. BAT) to any directory on the hard disk.

The write content is as follows:

Net stop h3server

Description: stop the service named "h3server.

Net start h3server

Explanation: enable the service named "h3server.

2. Click "Start Menu"> "Control Panel"> "Task Plan" to add a task plan.

1. click Next.

2. Click Browse, select the newly created reseth3server. BAT file, click OK, and then click Next.

3. Enter the task name, for example, restart the XX service and select when to execute the task.

4. Select the start date to indicate when the task will take effect. The default start date is the current date, which takes effect immediately after the setting is complete. Then, select the cycle for running this task. If it is a fixed time every day, select daily, if you want to select a fixed number of days, you can select the third item, then enter the number of days, and then set the exact execution time at the start time, that is, XX at XX seconds. Next step.

5. Set the Windows user account for this task. That is, the account used to log on to Windows. Note: If the current account password is changed after the task is set, the task cannot run after the password is changed. You need to set the task again and enter the new password.

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.