Enable local connection automatically on power-on, disable local connection _win server with cmd

Source: Internet
Author: User
Enable local connection automatically on power-on, disable local connection with CMD, the Task Scheduler service is not running

At the time of operation on the server accidentally pressed the local connection properties of the disabled button, just met the weekend computer room can not work in time to maintain, more than 100 Web sites on the server to open two days. Management software on the server needs to frequently add IP address after registration, often use the local connection properties is easy to press the wrong button. It would be nice if you could reboot the system to automatically enable network links.

Implementation methods

1. New document netsh interface set interface name= "Local Area Connection" admin=enabled saved as Net.bat

2. Start-"Set-" Control Panel-"Task plan Add Task schedule next browse to find Net.bat Select Computer startup

Click Next to enter your system username and password

The next step is complete

Disable network connections and reboot the computer discovery scheduled task not running, double-click Net task Prompt " Task Scheduler (Task Scheduler service not running)", Baidu is a Task Scheduler service does not start automatically. My Computer-> right-click-> Admin-> Service and Application-> service->task scheduler-> enable the service and set up automatic startup.

Make sure that you disable the local connection again and restart the local connection automatically.

Later appear accidentally press the wrong disable button can let the computer room on duty master to help restart the server to solve.

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.