habibzain Just husband, father and enthusiastic men about System Administration. Love to write short article about it. Perhaps can help and be useful for others.

Easy Windows Script For Disable Enable Interface

45 sec read

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.

habibzain Just husband, father and enthusiastic men about System Administration. Love to write short article about it. Perhaps can help and be useful for others.

How Terminate or End a Running Process in Windows

To terminate or end a running process in Windows, we can use the “Taskkill” command. Here’s how to use it: Replace “” with the...
habibzain
55 sec read

Ispconfig Nginx Directives Laravel

In a typical Laravel installation, the public folder contains all of the publicly accessible files for the application. This includes the index.php file, which...
habibzain
47 sec read

How to Hide Version nginx

Nginx is a popular web server that powers many websites and applications. However, by default, nginx reveals its version number in the HTTP response...
habibzain
1 min read

Leave a Reply

Your email address will not be published. Required fields are marked *

Never miss a story from us, get weekly updates in your inbox