Question
330066 views

Enable/Disable Network interface via command line

Em Cielo asked on

Hi guys,

 

Anybody here who could point me to a resource or a command line instruction to disable a network interface in Windows 7? Your help would be highly appreciated. Thanks in advance!

 

Em

112 people had this question

Abuse history


The answered status icon Answer
Steve Winograd replied on

This should do it:

   netsh interface set interface name="Local Area Connection" admin=disabled

Subsitute the actual network connection name if it isn't Local Area Connection.


Boulder Computer Maven
Microsoft Most Valuable Professional
Steve Winograd
3 people found this helpful

Abuse history


Most Helpful Reply
EddieZA replied on
Start elevated Command Prompt.

Get NIC list and index number:
wmic nic get name, index

Enable NIC with index number: (eg: 7)
wmic path win32_networkadapter where index=7 call enable

Disable NIC with index number: (eg: 7)
wmic path win32_networkadapter where index=7 call disable

200 people found this helpful

Abuse history


progress