Assuming “Ethernet” is the name of the network connection you need to enable or disable:
To enable:
netsh interface set interface "Ethernet" enable
To disable:
netsh interface set interface "Ethernet" disable
Assuming “Ethernet” is the name of the network connection you need to enable or disable:
To enable:
netsh interface set interface "Ethernet" enable
To disable:
netsh interface set interface "Ethernet" disable