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.