Sometimes in managing servers, there are many events that we cannot predict. One of them is the Windows VPS server has a FREEZE interface. The interface has frozen. Windows server is still on, but can’t freeze interface. Can’t ping and can’t be accessed either.
Instead of rebooting the server as a whole, it’s better to stop and start the Windows interface.
Open CMD to execute command
At first, On Loop Icon Search, then type “cmd”. Right click and run as administrator.
Note: This action need for Administrator access permission.
Execute Command “netsh”
Here is simple command to disable and enable interface in Windows.
netsh interface set interface Ethernet disable && netsh interface set interface Ethernet enable
Add Script in Task Scheduler Windows
Interface freeze can happen at any time. We can’t predict. Preventive that we can do is make a schedule in Windows for the execution of the script “netsh” above.
Open Task Scheduler.
Next, create Task. And give a name of scheduler. Change User or Group, and then select Administrator.
In tab trigger, make sure “enabled” is cheklist. We can set when script will be execute by scheduler.
Last, in tab condition. Select New, and browse file script that we made .bat extension that contained script above.