Netsh disables / enables local connections
Example 1.
Show all network connections: netsh interface show interface
Example 2.
Disable local connection ('Ethernet' in win8): netsh interface set interface name= "Ethernet" admin=disable
Example 3.
Enable local connection: netsh interface set interface name= "Ethernet" admin=enable