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

About SoCRaT

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

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s