NEW ACTION1 PLATFORM: NOW WITH MACOS SUPPORT

This Wednesday | 12 PM EST / 11 AM CET

Action1 5 How-to Articles 5 How to Enable, Disable or Restart Network Adapter Remotely

How to Enable, Disable or Restart Network Adapter Remotely

October 25, 2019

By Peter Barnett

Very often, when working on a remote site, you must distort the network cable or disconnect and enable the network adapter. But since we cannot do this physically, we have to ask someone to do it or to excel in such ways. In Linux, this happens easily, via ssh we drive in ifdown eth0 & ifup eth0 and all the rules. In Windows, you have to do the following to restart the network adapter.

1. Disable or Enable the Network Adapter in Network Connections

In the search bar or in the execute menu, type control.exe / name Microsoft.NetworkAndSharingCenter and press the Enter key (or go to the Start menu Settings Network and Internet Status Adapter settings”).

Open Adapter Settings

On the left side, click on “Change adapter settings.”

Step 1 to disable or enable network adapter is to Change adapter settings

To disable the network connection: select the network adapter that you want to disable and click on “Disable this network device” (or right-click on the network connection and select Disable).

disable the network connection

To enable the network connection: select the network adapter you want to enable, and click on “Enable this network device” (or right-click on the network connection and select “Enable”).

disable the network connection

2. Disable or Enable the Network Adapter in Device Manager

Open the “Device Manager”: one of the ways is to execute in the search bar or in the menu (Run is called with the Win + R keys) enter the command devmgmt.msc and press the Enter key.

To Disable or Enable the Network Adapter is to open devmgmt

To disable the network connection: open “Network adapters”, right-click on the one you want to disable, and click on “Disable device”. In the window that appears, click on “Yes.”

Disable network device

To enable a network connection: open “Network adapters”, right-click on the one you want to enable, and click on “Enable device”.

enable network device

3. Disable or Enable the Network Adapter Using the WMIC Command

Open a command prompt as administrator: one way is to enter cmd in the search bar and right-click on the result found, select “Run as administrator”.

To Disable or Enable the Network Adapter is to Open Command line

Type wmic nic get name, index and press Enter. Opposite the name of the network adapter that you need to enable or disable is the index that you need to remember.

To Disable or Enable the Network Adapter is to Open Command line

To disable a network adapter, use command wmic path win32_networkadapter where index = 1 call disable

networkadapter disable

To enable the network adapter, use command wmic path win32_networkadapter where index = 1 call enable

4. Restart Network Adapter with Bat-file

Create a bat-file, enter the following script there necessarily in ANSI encoding:
netsh interface set interface name = “Local Area Connection” admin = DISABLED

ping 127.0.0.1 -n 6> nul

netsh interface set interface name = “Local Area Connection” admin = ENABLED
Run this bat-file as administrator.
Where “Local Area Connection” is the name of the network adapter in your Windows. It may be called “Local Area Connection 2” or “Local Area Connection 3”. For convenience, I renamed the connections to LAN, Wi-Fi, Internet, Router or Bluetooth.
Remarks: works not only in Windows 7, but also in Windows 8 and Windows 10.

Consider Using Action1 to Restart the Network Adapter if:

  • You need to perform an action on multiple computers simultaneously.
  • You have remote employees with computers not connected to your corporate network.

Action1 is a cloud-based IT management platform for patch management, software deployment, remote desktop, software/hardware inventory, endpoint management and endpoint configuration reporting.

See What You Can Do with Action1

 

Join our weekly LIVE demo “Patch Management That Just Works with Action1” to learn more

about Action1 features and use cases for your IT needs.

 

spiceworks logo
getapp logo review
software advice review
trustradius
g2 review
spiceworks logo

Related Posts