This worked for me:
netsh interface set interface "Local Area Connection" disable/enable
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I used netsh to enable/disable my network connection on Windows 10 for well over a month with no issues, then a few days ago they stopped functioning.
Did a recent windows 10 update change the syntax for netsh?
"Ethernet" is indeed my current Interface Name (verified) and this is what I see:
D:\tmp>netsh interface set interface name="Ethernet" admin=disabled
The system cannot find the file specified.
This worked for me:
netsh interface set interface "Local Area Connection" disable/enable
To anyone still looking for this. This is only way i found to work.
netsh interface set interface "your interface name" disable
"disable" without "d", and you have to run this as admin. I have .bat file and a shortcut to it and shortcut is set to Run as administrator.
PowerShell to the rescue.
https://devblogs.microsoft.com/scripting/enabling-and-disabling-network-adapters-with-powershell/
--please don't forget to upvote and Accept as answer if the reply is helpful--
Bump, no answers.
I guess Ms people don't even look at their primary support channel. Sigh.
Is there a place to do a formal bug report? It is pretty obvious that they broke Windows 10 netsh during an update.