Question
Applies to
330424 views
Enable/Disable Network interface via command line
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
Answer
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
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
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
201 people found this helpful
Abuse history
