Saturday, September 13, 2014

Delete WiFi profiles (known WLAN networks) from the command line

Some days ago I came across a computer that couldn’t connect to any WiFi networks. Checking the machine, it turned out that it had over 50 (!) WiFi networks configured and it seemed one of them caused a problem.

To list all configured WiFi profiles, use the command netsh wlan show profiles

wlan show profiles

Because I was to lazy to delete them all using the GUI, I used netsh to delete them all:

netsh wlan delete profile name=* i=*

This will delete any WiFi profile (name=*) configured for any WiFi adapter (i=*).

Please note that these commands only work if you let Windows manage your WiFi connections. If you use a 3rd party connection manager, or Windows can’t detect any WiFi adapter, all you get is this error message:

wlan no beef