How To Block A Computer From Accessing To A Specific Wireless Network

imageEven though you have put pretty strong security on the wireless network, in some cases it helps if you still wants to completely lock down certain computers from accessing it. Unfortunately, there is no easy tool built-in Windows that can easily do that for you. You will have to go through the cool command line to make it happen. And this time, we will use netsh command line from the Command Prompt window.

Let’s say we want to block a computer from accessing a wireless network SSID “home”. Here is what we can do:

First, open Dos Prompt window as Administrator on the machine you want to block the access. Then, use the following command to block the access.

netsh wlan add filter permission=block ssid=home

After that, you can use

netsh wlan show filter

to double check if the setting is taken in place.

image

Furthermore, if you want to block this computer from accessing all wireless network, simply use denyall option in the command.

netsh wlan add filter permission=denyall networktype=adhoc

That’s it. Isn’t that hard?

Kent Chen

Microsoft MVP, IT Professional, Developer, Geek, and the co-founder of Next of Windows.

Last updated: 03/08/2017

Posted in: How to , Tips & Tricks
Discover more: , ,

Leave a Reply

Notify of
avatar
Ordri
Guest

Thanks for the help! I tried for hours to find an option through the OS with no luck. As a side note, I had to add

networktype=infrastructure

-or-

networktype=adhoc

to the end of the line to get the code accepted.

Mitchell
Guest

This works great blocking my child from connecting to other networks around our apartment. If you are trying to block an SSID with two names like Boingo Hotspot use parenthesis around the two names (ssid=”Boingo Hotspot”. Also, as noted above, you need to have the networktype=infrastructure at the end.

Mitch in NYC

Kyan Klee Cayad-an
Guest

Can u post how to fix wifi connection it is always get dc after laptop connects but in mobiles it is ok

Dubya
Guest

Thanks. This was so much simpler with XP.

my proud
Guest

thx

Sander
Guest

Thanks alot!

billyjoe
Guest

Hello.
does this work with a wifi hotspot created on windows 7?
how to only deny some pc’s?
and how to only allow some pc’s?

wpDiscuz