Share via

netsh - system cannot find the file specified

Anonymous
2023-07-14T00:50:22+00:00

Hi,

I am trying to use netsh but is unable to do so, yet I am able to execute netsh when doing show interface. Here is the output of the powershell.

PowerShell 7.3.5
PS C:\Users\user> netsh interface show interface

Admin State State Type Interface Name

Enabled Disconnected Dedicated OpenVPN Wintun
Enabled Disconnected Dedicated Local Area Connection
Enabled Disconnected Dedicated Local Area Connection 2
Enabled Disconnected Dedicated OpenVPN TAP-Windows6
Enabled Disconnected Dedicated OpenVPN Data Channel Offload
Enabled Disconnected Dedicated Wi-Fi 2
Disabled Disconnected Dedicated Wi-Fi

PS C:\Users\user> netsh interface set interface "wi-fi 2" disable
The system cannot find the file specified.

PS C:\Users\user> netsh.exe interface set interface "Local Area Connection" disable
The system cannot find the file specified.

System Path is still the same.

PS C:\Users\user> $env:path -split ";"
C:\Program Files\WindowsApps\Microsoft.PowerShell_7.3.5.0_x64__8wekyb3d8bbwe
C:\WINDOWS\system32
C:\WINDOWS
C:\WINDOWS\System32\Wbem
C:\WINDOWS\System32\WindowsPowerShell\v1.0\
C:\WINDOWS\System32\OpenSSH\
C:\Program Files\WireGuard\
C:\Program Files\PowerShell\7\
C:\Program Files\dotnet\
C:\Users\user\AppData\Local\Microsoft\WindowsApps
PS C:\Users\user>

So, what seems to be wrong? And how do I fix it?

Windows for home | Windows 11 | Performance and system failures

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Anonymous
    2023-07-29T08:08:22+00:00

    Please try this from admin Command Prompt:

    netsh.exe interface set interface name="Local Area Connection" admin=disabled

    Your solution doesn't work for me, i use win11 pro, any other suggestion i can try ?

    Was this answer helpful?

    0 comments No comments
  2. Ramesh 176.5K Reputation points Volunteer Moderator
    2023-07-14T04:27:56+00:00

    Please try this from admin Command Prompt:

    netsh.exe interface set interface name="Local Area Connection" admin=disabled

    Was this answer helpful?

    0 comments No comments