March 17, 2011

Command used to disable/enable network interface

netsh interface set "interface" DISABLED/ENABLED

For example to disable an interface with its default name "Local Area Connection", run:
netsh interface set interface "Local Area Connection" DISABLED

To enable the interface, you'd then run:
netsh interface set interface "Local Area Connection" ENABLED
©