Filter wireless networks in Windows 10 to create a black list or white list

There is a secret feature of Windows 10 which allows you to whitelist wireless networks you have in your vicinity. It is useful if you have lots of wireless networks in your area with lots of access points. Every time you connect to your wireless network, you will see a cluttered list of SSIDs (network names). If you will create a white list for these networks, you will be able to filter them and see only your own WiFi.


Here is how my WiFi network list looks before filtering it:

My own WiFi is SSID01, and I do not want to see other network names in this list.

To filter this list to show only my own wireless network, we need to do the following:

  1. Open an elevated command prompt.
  2. Type the following:
    netsh wlan add filter permission=allow ssid="YOUR SSID HERE" networktype=infrastructure

    This will add your Wifi to the white list.
    e.g. in my case, the command must be as follows:

    netsh wlan add filter permission=allow ssid="SSID01" networktype=infrastructure

  3. Repeat the step above for all WiFi networks you have. If you connect to a different network at your work place and at home, be sure to white list them all.
  4. Now we need to block the rest of the "foreign" wireless networks which don't belong to you. The command for that is as follows:
    netsh wlan add filter permission=denyall networktype=infrastructure

You are done! Check out your wireless networks list now:

If you decide to revert the changes you made, use the following command:

netsh wlan delete filter permission=denyall networktype=infrastructure


This will reset the filtering option and you will see all networks again.

Note that if you roam a lot with your PC and need to scan for wireless networks in different areas, then you must not set up a deny filter otherwise even the connections you want to connect to will be hidden! The same can be done in Windows 8.1, Windows 7 and Windows Vista.

Support us

Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:

If you like this article, please share it using the buttons below. It won't take a lot from you, but it will help us grow. Thanks for your support!

Author: Sergey Tkachenko

Sergey Tkachenko is a software developer who started Winaero back in 2011. On this blog, Sergey is writing about everything connected to Microsoft, Windows and popular software. Follow him on Telegram, Twitter, and YouTube.

8 thoughts on “Filter wireless networks in Windows 10 to create a black list or white list”

  1. Hi,

    I’m guessing the deny command could be used on an individual SSID? That is, block one or more instead of blocking all..?

  2. Is it possible in Windows 10 to whitelist access points by MAC address for specific SSID? (as a means of protection against MITM attacks)

  3. Pingback: Hide or show Wireless Networks in Windows - gHacks Tech News
  4. Is there any way to prevent and end user from pressing the disconnect button on a whitelisted WiFi network? We have one whitelisted network so if they accidentally hit disconnect they are no longer connected to anything.

Leave a Reply

Your email address will not be published.

Exit mobile version
Using Telegram? Subscribe to the blog channel!
Hello. Add your message here.