Any network not on the allow list will be hidden automatically when you enable that option.
Use this filter to block all wireless networks but the ones that are on the allow filter list.
Netsh wlan add filter permission=denyall networktype=infrastructure Useful, if you want to make sure that a particular network is never listed again. It won't show up when you click on the network icon in Windows to list all available wireless networks. This filter hides the specified wireless network from the list of wireless networks. Netsh wlan add filter permission=block ssid=notmynetwork networktype=infrastructure Note: you need to enclose the SSID of the network in 'network name' if it contains a space.
This is useful if you use the 'denyall' filter, as it hides all wireless networks that are not in the whitelist. This command adds the wireless network 'mynetworkname' to the list of allowed networks.