How to Disable/Enable Ethernet Connection on Windows 10 via Command Line

There may be times when you need to disable or re-enable your Ethernet connection in Windows 10, either for troubleshooting purposes or to manage your network interfaces. You can easily do this using the command line. In this post, we’ll show you how to use Netsh commands to disable and enable your Ethernet connection in just a few steps.

Steps to Disable Ethernet Connection

1. Open Command Prompt as Administrator

To run network commands, you’ll need to open Command Prompt with administrator privileges. Here’s how:

  • Press Win + X and select Command Prompt (Admin) or Windows PowerShell (Admin).

2. List All Network Interfaces

To manage the Ethernet connection, you need to know its interface name. Use the following command to list all network interfaces:

netsh interface show interface
        

This command will display a list of interfaces. Look for the Ethernet connection, which is typically named something like "Ethernet" or "Local Area Connection".

3. Disable the Ethernet Connection

Once you’ve identified the interface name, you can disable the Ethernet connection using this command (replace Ethernet with your network interface name):

netsh interface set interface "Ethernet" admin=disable
        

This will instantly disable the Ethernet connection.

Re-Enabling the Ethernet Connection

If you need to enable the Ethernet connection again, use the following command (again, replace Ethernet with your network interface name):

netsh interface set interface "Ethernet" admin=enable
        

This command will restore the connection.

Conclusion

Managing your network interfaces through the command line is a quick and efficient way to control your Ethernet connection on Windows 10. By using Netsh, you can easily disable and enable network interfaces without the need for graphical tools.

Try this method next time you need to troubleshoot your network or switch between connections quickly!