How to enable/disable a network interface on Windows from command line

Assuming “Ethernet” is the name of the network connection you need to enable or disable:

To enable:

netsh interface set interface "Ethernet" enable

To disable:

netsh interface set interface "Ethernet" disable

Unknown's avatar

About Ahmed Tawfik

Cybersecurity Professional, Systems Engineer, OSS & Linux Geek
This entry was posted in Windows and tagged , , . Bookmark the permalink.

Leave a comment