List saved Wi-Fi profiles with netsh wlan
Enumerate every wireless network Windows remembers, inspect a profile's settings, and export profiles for backup or transfer to another PC.
01Command
$ netsh wlan show profiles02What it does
Profiles are per-user or all-user; `netsh wlan show profiles` shows which list each belongs to. Drill into one profile to see authentication type, whether it connects automatically, and — with key=clear — the plaintext pre-shared key, which is handy when a colleague needs the office Wi-Fi. Back up profiles to XML with `netsh wlan export profile name="NetworkName" folder=C:\wlan key=clear` and restore on another machine with `netsh wlan add profile filename=C:\wlan\NetworkName.xml`. Remove stale networks with `netsh wlan delete profile name="NetworkName"`.
03Risk
04Undo
$ netsh wlan delete profile name="ProfileName"05Sources
- Netsh contexts and commands | Microsoft LearnEvidence: Microsoft documents the netsh wlan context with commands to show profiles, delete profiles, and display stored WLAN settings.
- Netsh - Network Shell - Windows CMDEvidence: SS64 lists netsh wlan commands including 'show profiles' and 'show profile name=... key=clear' for revealing saved Wi-Fi keys.
Last verified: 2026-09-17 · Category: Network
06Related solutions
Purge cached DNS lookups so Windows re-resolves hostnames from scratch — the fix for 'the new server is live but my browser still hits the old one'.
Understand PowerShell's execution policy scopes and set the one that lets you run your own local scripts without gutting the security model.
The nuclear option for broken connectivity: rebuild Winsock and the TCP/IP stack to defaults when adapters show 'no internet' despite everything else working.