FreakoutITGeek's Blog

Random IT postings from Freakz

Windows WiFi Profile Management

Whilst investigating issues with Wi-Fi on Windows 10 laptops, I realised that many of them had several SSIDs listed, so I thought “how can you manage this?”

A quick Google came up with the following commands (source: https://devblogs.microsoft.com/scripting/using-powershell-to-view-and-remove-wireless-profiles-in-Windows-10-part-1/):

Get all WiFi Profiles: netsh wlan show profiles

Delete WiFi Profile “profileName”: netsh wlan delete profile=“profileName”

Delete WiFi profile containing “iPhone”: netsh wlan delete profile=“*iPhone*”

With these basic commands and some simple PowerShell (or whatever is your preferred programming language – Python? ), it’s possible to get all the profiles, check which ones are required and remove any that are not needed.

I won’t go into how to do this as there’s enough in the original documentation and anyone doing this will have their own requirements, which are likely to be different from my own.

If you want to take it further (which I did) you can create a GUI front end in PowerShell [using System.Window.Forms] that will allow you to display all the profiles and delete the ones you don’t want, manually. (Other programming languages are probably {edit: definitely} better at this)

For more information on creating GUI using PowerShell, check out LazyAdmin’s write up

I hope this helps someone out that may need a way to manage WiFi profiles (ie anyone just trying to clear out any free coffee shop / burger restaurants WiFi) without using more advanced tools (such as SCCM or a MDM), or having to manually trawl through every entry on their Wi-Fi list to get back to something manageable.

Leave a comment