Back Up Saved Wi-Fi Profiles (netsh wlan export)
Export every remembered Wi-Fi network and its password to XML files.
Run netsh wlan export profile key=clear folder=C:wifi-backup in an admin Command Prompt.
01Command
Command
$ netsh wlan export profile key=clear folder=C:wifi-backup02What it does
Windows remembers each Wi-Fi network as a profile; netsh wlan export writes them as XML files that can be re-imported with netsh wlan add profile. This is the fastest way to carry your network logins to a fresh install or another laptop without retyping passwords. Add key=clear or the exported files omit the password.
03Risk
!Warning: With key=clear the XML files contain your Wi-Fi passwords in plain text — store the folder securely and delete it after importing.
04Undo
Undo
$ netsh wlan add profile filename="C:wifi-backupWi-Fi-Home.xml" user=all05Sources
- netsh - Windows CMDEvidence: Documents the netsh wlan context including profile export to XML and re-adding profiles with netsh wlan add profile.
Last verified: 2026-09-18 · Category: Network