"netsh interface set interface name="Ethernet" admin=disabled" stopped working a few days ago

Mehrcraft 1 Reputation point
2022-10-07T17:45:08.477+00:00

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?

  • If yes, what is the new syntax?
  • If no, can anybody help me figure out what is happening and how to fix it?

"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.

Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,364 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Mehrcraft 1 Reputation point
    2022-10-12T20:31:53.357+00:00

    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.

    0 comments No comments

  2. Anonymous
    2022-10-12T20:50:36.917+00:00

    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--


  3. Albert 0 Reputation points
    2024-10-22T21:51:18.54+00:00

    This worked for me:

    netsh interface set interface "Local Area Connection" disable/enable

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.