Windows 10: Using netsh wlan commands not working Solved

  1.    04 Jan 2017 #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 ComputerSystem Spec

  2.    05 Jan 2017 #2

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

  3.    05 Jan 2017 #3

    Using netsh wlan commands not working


    John Galt said: View Post
    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 ComputerSystem Spec

  4.    06 Jan 2017 #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 ComputerSystem Spec

  5.    06 Jan 2017 #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 ComputerSystem Spec


  6. Posts : 492
    Microsoft Windows 10 Pro 64-bit
       07 Jan 2017 #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 ComputerSystem Spec

  7.    07 Jan 2017 #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: View Post
    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 ComputerSystem Spec


  8. Posts : 492
    Microsoft Windows 10 Pro 64-bit
       07 Jan 2017 #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
    Click image for larger version. 

Name:	1 netsh wlan show filters.png 
Views:	2 
Size:	13.5 KB 
ID:	116197

    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
    Click image for larger version. 

Name:	2 netsh wlan add filter permission=denyall networktype=infrastructure.png 
Views:	2 
Size:	16.7 KB 
ID:	116199

    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.
    Click image for larger version. 

Name:	4 No Networks found.png 
Views:	17 
Size:	9.9 KB 
ID:	116201

    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
    Click image for larger version. 

Name:	3 netsh wlan add filter permission=allow ssid=Bad Robot networktype=infrastructure.png 
Views:	2 
Size:	19.5 KB 
ID:	116200
    As expected now when I click on my network icon in the lower right hand side of the screen only my WiFi is visible.
    Click image for larger version. 

Name:	5 yea network found.png 
Views:	17 
Size:	10.0 KB 
ID:	116202
    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 ComputerSystem Spec

  9.    07 Jan 2017 #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: View Post
    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
    Click image for larger version. 

Name:	1 netsh wlan show filters.png 
Views:	2 
Size:	13.5 KB 
ID:	116197

    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
    Click image for larger version. 

Name:	2 netsh wlan add filter permission=denyall networktype=infrastructure.png 
Views:	2 
Size:	16.7 KB 
ID:	116199

    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.
    Click image for larger version. 

Name:	4 No Networks found.png 
Views:	17 
Size:	9.9 KB 
ID:	116201

    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
    Click image for larger version. 

Name:	3 netsh wlan add filter permission=allow ssid=Bad Robot networktype=infrastructure.png 
Views:	2 
Size:	19.5 KB 
ID:	116200
    As expected now when I click on my network icon in the lower right hand side of the screen only my WiFi is visible.
    Click image for larger version. 

Name:	5 yea network found.png 
Views:	17 
Size:	10.0 KB 
ID:	116202
    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 ComputerSystem Spec


 

Related Threads
Problems using IPv6 netsh in command window in AntiVirus, Firewalls and System Security
Hello, I'm trying to set up an IPv6 tunnel. My first command in the command window is as follows: netsh interface teredo set state disabled. The msg. I get is as follows: The requested operation requires elevation (run as ...
Yet another MS security wonder ? I just connected to a wifi hotspot from a non-admin account on my laptop. Since it was only for testing purposes and with no intent of using it in the future, I decided to delete the wireless network profile once...
I found information to use to connect to a Wifi using the netsh command line. http://www.hanselman.com/blog/HowToConnectToAWirelessWIFINetworkFromTheCommandLineInWindows7.aspx I used this command to connect to Wifi and this SSID is not at my...
Hello, Every month or so comes a time where Google Chrome will stop working, I had a post about it here but no solution was found, until I found a video that shows that you need to run a netsh winsock reset in the command prompt, and it worked ...
I was wondering what is the Windows 10 default setting for this one, is it actually allow or disallow? netsh wlan set hostednetwork mode=
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 00:08.
Find Us