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.