Enable local connection automatically at startup, and enable local connection with cmd

Source: Internet
Author: User

Enable local connection automatically at startup, enable local connection with cmd, And the Task Scheduler Service is not running

When I operate on the server, I accidentally press the "Disable" button in the local connection attribute. On weekends, the data center fails to work and cannot be maintained in time. More than one hundred websites on the server cannot be opened for two days. The management software on the server needs to be added frequently and then registered. The local connection attribute is often used, so it is easy to press the wrong button. If you can restart the system, you can enable the network connection automatically.

Implementation Method

1. New Document netsh interface set interface name = "Local Connection" admin = ENABLED save as net. bat

2. Start-set-control panel-task plan add task plan next browse find net. bat select when the computer starts

Click Next and enter the system user name and password.

The next step is complete.

Disable the network connection and restart the computer to find that the scheduled task is not running. When you double-click the net task, the system prompts"Task Plan (the Task Scheduler Service is not running)", Baidu, it turns out that the Task Scheduler Service is not automatically started. My computer-> right-click-> Management-> services and applications-> services-> Task Scheduler-> enable the service and set automatic start.

Disable the local connection and restart the local connection.

In the future, when the button is accidentally disabled by mistake, the master on duty in the IDC room can help restart the server.

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.