Windows 11 gives you a clean and modern interface to manage your wireless connections, but when it comes to controlling which Wi-Fi networks your PC can see, join, or avoid automatically, the real power lies beneath the surface. Maybe you’re tired of your laptop auto-connecting to a slow public Wi-Fi hotspot. Maybe you want to block a neighbor’s network from appearing every time you open Wi-Fi settings. Or perhaps you want to whitelist a specific Wi-Fi network so that Windows always prioritizes it.
If you’re here reading this guide, chances are you want more control over the Wi-Fi networks your Windows 11 PC interacts with. The good news is that Windows offers built-in commands that allow you to block, allow, and manage priority for wireless networks—even those you’ve never connected to.
This in-depth guide walks you through everything you need to know about blocking or allowing Wi-Fi networks in Windows 11 using both the Settings app and advanced command-line methods.
Let’s dive in!
Why Block or Allow Wi-Fi Networks?
Blocking or allowing Wi-Fi networks on Windows 11 can help you:
- Prevent your device from auto-connecting to unwanted networks
- Hide specific Wi-Fi SSIDs from your connection list
- Avoid insecure public hotspots
- Reduce interference or accidental switching
- Keep kids or guests from connecting to specific networks
- Prioritize faster or more secure Wi-Fi networks
- Maintain a clean Wi-Fi list without clutter
While Windows Settings lets you manage known networks, only the command line allows actual blocking of networks you haven’t connected to yet.
How to Block or Allow a Wi-Fi Network in Windows 11
Below are all the effective methods for controlling Wi-Fi access.
1. Block a Wi-Fi Network Using Command Prompt
Windows lets you block specific Wi-Fi networks using their SSID. Once blocked, these networks will no longer appear in your Wi-Fi list, and Windows won’t allow connection to them.
- Press Windows + S, type cmd, and choose Run as administrator.
- Use the following command to block a Wi-Fi network:
netsh wlan add filter permission=block ssid="NETWORK_NAME" networktype=infrastructure
Replace NETWORK_NAME with the Wi-Fi name you want to block.
Example:
netsh wlan add filter permission=block ssid="FreeAirportWiFi" networktype=infrastructure
This SSID will now be completely hidden from the PC.
2. Allow a Specific Wi-Fi Network (Whitelist)
If you want your PC to only connect to certain networks while blocking everything else, you can whitelist them.
- Open Command Prompt (Admin).
- Add an allowed Wi-Fi network:
netsh wlan add filter permission=allow ssid="NETWORK_NAME" networktype=infrastructure
- You can also allow multiple networks by repeating the command.
Example:
netsh wlan add filter permission=allow ssid="HomeNetwork" networktype=infrastructure
When using allow filters, Windows prefers allowed SSIDs and ignores others.
3. Remove a Wi-Fi Network from Block or Allow List
If you no longer want to block or allow a network:
netsh wlan delete filter ssid="NETWORK_NAME" networktype=infrastructure
Example:
netsh wlan delete filter ssid="FreeAirportWiFi" networktype=infrastructure
This restores normal behavior for that Wi-Fi network.
4. View All Blocked and Allowed Wi-Fi Networks
You can list your current Wi-Fi filters.
- Open Command Prompt (Admin).
- Run:
netsh wlan show filters
This displays:
- Blocked networks
- Allowed networks
- Global permissions
It’s helpful to verify your rules or troubleshoot connectivity issues.
5. Stop Windows from Automatically Connecting to a Wi-Fi Network
If you don’t want to block a network but want to stop Windows from auto-connecting:
- Open Settings → Network & Internet → Wi-Fi.
- Click Manage known networks.
- Select the Wi-Fi network.
- Turn off Connect automatically when in range.
This prevents accidental connections without blocking the network entirely.
6. Forget a Wi-Fi Network Completely
If your device keeps remembering an old Wi-Fi network:
- Go to Settings → Network & Internet → Wi-Fi.
- Click Manage known networks.
- Find the network and choose Forget.
Windows will no longer connect or suggest the network.
7. Prioritize Your Preferred Wi-Fi Network
You can make one network take priority over others.
Steps (Command Prompt):
- Open Command Prompt (Admin).
- Run:
netsh wlan show profiles
- Then reorder priority:
netsh wlan set profileorder name="NETWORK_NAME" interface="Wi-Fi" priority=1
Higher priority networks will always connect first.
8. Block All Wi-Fi Networks Except Your Own (Parental / Office Control)
If you want your PC to only join a single allowed network:
- Add your home Wi-Fi to the allow list:
netsh wlan add filter permission=allow ssid="HomeNetwork" networktype=infrastructure
- Block all others:
netsh wlan add filter permission=denyall networktype=infrastructure
This is perfect for:
- Kids’ PCs
- School computers
- Office machines
- Kiosks and public systems
To undo this restriction:
netsh wlan delete filter permission=denyall networktype=infrastructure
Wrapping Up
Controlling which Wi-Fi networks your Windows 11 PC can see or connect to gives you far more security, privacy, and stability — especially in areas with multiple wireless networks or when trying to avoid insecure hotspots. Whether you’re blocking unwanted SSIDs, whitelisting your trusted networks, or completely restricting Wi-Fi access, Windows 11 gives you powerful tools through both the Settings app and command-line utilities.