Using netsh wlan commands not working


  1. Posts : 5
    Windows 10
       #1

    Using netsh wlan commands not working


    Someone else's network keeps popping up in my list of networks in the Windows 10 Action Center. I've used a cmd prompt and followed all instructions for using "netsh wlan" commands to deny all (and then allow my own network to show, but the network I blocked still keeps popping up in my Action Center then quickly disappearing again. I know I used the proper "netsh" commands, because the command prompt said the network was successfully blocked. I don't understand why it keeps popping up in the list of networks in my Action Center. My own private network should be the only one I see there. Can you help?
      My Computer


  2. Posts : 51
    Windows 10
       #2

    It comes up in the list of available Wifi networks, or it comes up as a network you are currently connected with?
      My Computer


  3. Posts : 5
    Windows 10
    Thread Starter
       #3

    Using netsh wlan commands not working


    John Galt said:
    It comes up in the list of available Wifi networks, or it comes up as a network you are currently connected with?
    It comes up in the list of available WiFi networks but it isn't a network that I have ever connected to. I'm connected to my own private WiFi network and have never seen another network show up on the list until now. It has a padlock mark on it which, I think, means I couldn't use it anyway because it's password-protected. I don't want to use it. I just don't want to see it in my Action Center. As I said, I tried a netsh wlan command to block the network, and used another netsh wlan command that was meant to also hide blocked networks from the list, but this rogue network still shows up on the list in my Action Center. It shows up for about 10 seconds, then disappears. Confusing...In fact, it happened again just now...showed up on the list for a few seconds, then disappeared all of a sudden.
    Last edited by Nandilicious; 05 Jan 2017 at 22:29. Reason: add moreinformation
      My Computer


  4. Posts : 51
    Windows 10
       #4

    Ahh, okay, I see. The list of available networks on that menu shows all Wifi networks that your system can see, whether you've connected to them or not, and whether they are yours or not. You can ignore that network.

    If you are looking for the safest configuration possible, I suggest the following additional settings:

    1. Disable Wi-FI sense - How to protect yourself against Windows 10’s controversial new Wi-Fi Sense feature – BGR
    2. Use NTLMv2 only - Security Watch: The Most Misunderstood Windows Security Setting of All Time
    3. Look through this site and maybe pickup a few more suggestions: Harden Windows 10 - A Security Guide. How to secure Windows 10
      My Computer


  5. Posts : 5
    Windows 10
    Thread Starter
       #5

    Using netsh wlan commands not working


    Thanx, John...I'm not using Wi-Fi Sense because it says I have to log in to a Microsoft account first, and I don't have a Microsoft account. I did check out the websites you suggested, but didn't understand most of what I was reading. On one of them, there were a lot of files that needed to be downloaded and I didn't want to go through all that. Anyway, I was told that I can see that rogue network but the way my network is set up, they can't get into it, so I guess I'm satisfied with that. I could get into their's if I really wanted to, because what I thought was a padlock was just an exclamation point (!) and if I do click on that network, it doesn't ask me for a password. Anyway, I'll still to my own private network. I never use public networks, not even in hotels or other places. I won't use the internet at all if the only available network is a public one.

    Thank you for your suggestions. I think everything is okay now. Nandi
      My Computer


  6. Posts : 822
    Microsoft Windows 10 Pro 64-bit
       #6

    What commands are you using. From what it sounds like to me you are blacklisting WiFi SSID's when you should actually be Whitelisting them.

    It's late where I live and i'm going to bed and don't feel like searching TenForums but I think their is a tutorial from Brink on how to do this --- or search my post's I think I answered a question on how to do this. Or search TenForums with your command maybe faster.

    One more thing if some user answer's this thread and says your going break the internet by blocking SSID's don't believe them.
      My Computer


  7. Posts : 5
    Windows 10
    Thread Starter
       #7

    Using netsh wlan commands not working


    To block unwanted networks, I went to the command prompt and entered the following:
    netsh wlan add filter permission=denyall networktype=infrastructure

    To hide that network, I entered:
    netsh wlan set blockednetworks display=hide

    To allow my own network to show on the list, I entered:
    netsh wlan add filter permission=allow ssid=(my ssid) networktype=infrastructure

    This worked for a while, but then that other network started popping up in my list of networks and disappearing after a few seconds. I even went back to the command prompt to see if it was in my list of blocked networks (it was) and to see if it was hidden (and it was). But this morning, it showed up again in the list of available network in my Action Center then disappeared again.




    sml156 said:
    What commands are you using. From what it sounds like to me you are blacklisting WiFi SSID's when you should actually be Whitelisting them.

    It's late where I live and i'm going to bed and don't feel like searching TenForums but I think their is a tutorial from Brink on how to do this --- or search my post's I think I answered a question on how to do this. Or search TenForums with your command maybe faster.

    One more thing if some user answer's this thread and says your going break the internet by blocking SSID's don't believe them.
      My Computer


  8. Posts : 822
    Microsoft Windows 10 Pro 64-bit
       #8

    Glad to see you figured it out and marked it resolved, When I woke up this morning I realized that I have not use these commands for a couple of years and wondered if they still work. Even though you resolved it i'm figured I might as well post my results.

    It's a boring Saturday so I decided to document what I would do to accomplish what I think you are trying to do.

    Before I start I looked at the WiFi networks I was receiving and the total was 9 and one of those belonged to me.
    Note:For Privacy reasons I will not show the 8 WiFi networks that do not belong to me that are near me.

    1:
    I wanted to make sure I am starting from a clean state and have no filters enabled.
    Code:
     netsh wlan show filters
    Using netsh wlan commands not working-1-netsh-wlan-show-filters.png

    I had no filters but if i did i would of deleted them first:
    Delete Allow list filters
    Code:
     netsh wlan delete filter permission=allow ssid="WLAN name" networktype=infrastructure
    Delete Block list filters
    Code:
    netsh wlan delete filter permission=block ssid="WLAN name" networktype=infrastructure

    2:
    Next I blocked every SSID:
    Code:
     netsh wlan add filter permission=denyall networktype=infrastructure
    Using netsh wlan commands not working-2-netsh-wlan-add-filter-permission-denyall-networktype-infrastructure.png

    As I expected when I clicked on my network icon in the lower right hand side of the screen there were no WiFi networks displayed.
    Using netsh wlan commands not working-4-no-networks-found.png

    3:
    Now that I got what I wanted I’m going to add my WiFi router.
    Code:
     netsh wlan add filter permission=allow ssid="Bad Robot" networktype=infrastructure
    Using netsh wlan commands not working-3-netsh-wlan-add-filter-permission-allow-ssid-bad-robot-networktype-infrastructure.png
    As expected now when I click on my network icon in the lower right hand side of the screen only my WiFi is visible.
    Using netsh wlan commands not working-5-yea-network-found.png
    Although in theory the way you did it should work the same as the way I did it I would try my way and see if works the way you expect.
      My Computer


  9. Posts : 5
    Windows 10
    Thread Starter
       #9

    Thanx for showing me what you did. I did do the denyall command, and checked to see if my network was on the list (it wasn't), then I "allowed" my own network back in and it was the only one listed. Problem is, that other network still pops up for a few seconds and goes away, even though I went into a command prompt (as admin) and blocked it, then set it to "hide" it so it shouldn't show up in my list of networks. It's kinda strange, but I'm getting used to it...and as long as know the person has no access to my computer, I can relax. Thanx anyway. Nandi


    sml156 said:
    Glad to see you figured it out and marked it resolved, When I woke up this morning I realized that I have not use these commands for a couple of years and wondered if they still work. Even though you resolved it i'm figured I might as well post my results.

    It's a boring Saturday so I decided to document what I would do to accomplish what I think you are trying to do.

    Before I start I looked at the WiFi networks I was receiving and the total was 9 and one of those belonged to me.
    Note:For Privacy reasons I will not show the 8 WiFi networks that do not belong to me that are near me.

    1:
    I wanted to make sure I am starting from a clean state and have no filters enabled.
    Code:
     netsh wlan show filters
    Using netsh wlan commands not working-1-netsh-wlan-show-filters.png

    I had no filters but if i did i would of deleted them first:
    Delete Allow list filters
    Code:
     netsh wlan delete filter permission=allow ssid="WLAN name" networktype=infrastructure
    Delete Block list filters
    Code:
    netsh wlan delete filter permission=block ssid="WLAN name" networktype=infrastructure

    2:
    Next I blocked every SSID:
    Code:
     netsh wlan add filter permission=denyall networktype=infrastructure
    Using netsh wlan commands not working-2-netsh-wlan-add-filter-permission-denyall-networktype-infrastructure.png

    As I expected when I clicked on my network icon in the lower right hand side of the screen there were no WiFi networks displayed.
    Using netsh wlan commands not working-4-no-networks-found.png

    3:
    Now that I got what I wanted I’m going to add my WiFi router.
    Code:
     netsh wlan add filter permission=allow ssid="Bad Robot" networktype=infrastructure
    Using netsh wlan commands not working-3-netsh-wlan-add-filter-permission-allow-ssid-bad-robot-networktype-infrastructure.png
    As expected now when I click on my network icon in the lower right hand side of the screen only my WiFi is visible.
    Using netsh wlan commands not working-5-yea-network-found.png
    Although in theory the way you did it should work the same as the way I did it I would try my way and see if works the way you expect.
      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 13:23.
Find Us




Windows 10 Forums