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

 

Question Info


Last updated September 20, 2018 Views 371,977 Applies to:
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

132 people were helped by this reply

·

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.