≡ Menu

Command line to disable network connection in windows 2008/Windows 7

I inspired from my previous post,  and decide to do some network interface related operations from command line as they helps me when managing Windows 2008 Core Operating system. Another command that I am going to provide now is to disable network connection from command line.

netsh interface set interface name=”Local Area Connection 1″ admin=DISABLED

In about command, “Local Area Connection 1” is the name of the connection that you want to disable. You can change the value of “Admin” to “Enable” to enable back the network connection. Similarly, if you want to rename the network connection, you can use newname parameter. Below is the command.

netsh interface set interface name=”Local Area Connection 1″ newname=”My NIC1″

Above command renames “Local Area Connection 1” network to “My NIC1”.

Hope this helps…

Comments on this entry are closed.

  • Brandie August 1, 2011, 1:48 am

    Keep these airctles coming as they’ve opened many new doors for me.