I want to enable/disable a network connection from the command-line in Windows 8.
netsh interface set interface “Local Area Connection” DISABLED
To enable the interface, you'd then run:
netsh interface set interface “Local Area Connection” ENABLED
When I try this, it generates an error message which states that "no more data is available".
This may be enough for you if you are using DHCP.
Disable:
ipconfig /release *
Enable:
ipconfig /renew
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With