using shortcut netsh.exe to disable WIFI adapter isn't working


  1. Posts : 181
    10, server 2016, server2012
       #1

    using shortcut netsh.exe to disable WIFI adapter isn't working


    not sure what happened but I have shortcuts with target line of shortcut looking like this:

    C:\Windows\System32\netsh.exe interface set interface name="Wi-Fi 11" admin = disabled
    when I run this nothing happens and so I went under system32 folder open command prompt as admin, netsh.exe is there but I get this error message output instead.

    using shortcut netsh.exe to disable WIFI adapter isn't working-image.png

    any idea whats causing this? it use to work just fine and WI-FI 11 is still there which I can right click to disable/enable.
      My Computer


  2. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #2

    Hello @m18xr2,

    Does this help? => How to Enable or Disable Network Adapters in Windows

    Also, have a look at the Related Tutorials at the BOTTOM of the above Tutorial [ there are a few ], as they may also be related.

    I hope this helps.
      My Computer


  3. Posts : 181
    10, server 2016, server2012
    Thread Starter
       #3

    Paul Black said:
    Hello @m18xr2,

    Does this help? => How to Enable or Disable Network Adapters in Windows

    Also, have a look at the Related Tutorials at the BOTTOM of the above Tutorial [ there are a few ], as they may also be related.

    I hope this helps.
    hey thanks for the link, unfortunately it is not what i'm looking for. I know I can disable through that method but what I am trying to figure out why going through shortcut stopped working. I need the shortcut for least number of clicks as my WIFI card is finicky and only way to fix it is reset. this can range from twice a day to even 10 times a day depending on the application I use.

    going through those steps each time is simply way too much clicks, I set up shortcut to 1 click disable, 1 click enable all on my taskbar.

    do you know why the shortcut stop working and why command line gave that error message?
      My Computer


  4. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #4

    Hello @m18xr2,

    m18xr2 said:
    Do you know why the shortcut stop working and why command line gave that error message?
    Strange.

    In a CMD prompt, Copy & Paste the following command and press Enter . . .

    Code:
    
    PowerShell "Get-NetAdapter -Name * | Select Name, InterfaceDescription, Status | Format-Table -AutoSize | Out-String -Width 1000"

    Check that the Name field matches EXACTLY what you have between the speech marks.
      My Computer


  5. Posts : 181
    10, server 2016, server2012
    Thread Starter
       #5

    Paul Black said:
    Hello @m18xr2,



    Strange.

    In a CMD prompt, Copy & Paste the following command and press Enter . . .

    Code:
    
    PowerShell "Get-NetAdapter -Name * | Select Name, InterfaceDescription, Status | Format-Table -AutoSize | Out-String -Width 1000"

    Check that the Name field matches EXACTLY what you have between the speech marks.
    this is what I have

    using shortcut netsh.exe to disable WIFI adapter isn't working-image.png
      My Computer


  6. Posts : 16,949
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #6

    Your shortcut's command is not the same as the one I use
    Code:
    C:\Windows\System32\netsh.exe interface set interface "Wi-Fi" disabled
    - Run as Admin
    - Use your WiFi adapter name " Wi-Fi 11" in place of my "Wi-Fi"
    I've just this moment run it to check that the command still works.

    All the best,
    Denis
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 06:10.
Find Us




Windows 10 Forums