To transfer saved Wi-Fi passwords to a new computer, export your Wi-Fi profiles on the old PC with netsh wlan export profile key=clear folder=C:\WiFi, copy the folder to the new PC, then import each file with netsh wlan add profile filename="...". Every network comes across with its name, security type and password, so the new PC connects without you retyping anything.
If you only need one or two networks, it is quicker to look up the password on the old PC and type it on the new one. Both methods are below, along with what to watch out for.
Where does Windows store saved Wi-Fi passwords?
Each Wi-Fi network you have ever joined is saved as a "profile" that holds the network name (SSID), the security type and the key. Windows keeps these profiles itself rather than in your user folder, so they are not included when you copy Documents, Desktop or a whole user profile to a new PC.
That is why a new laptop greets you with a list of nearby networks and asks for the password, even after you have copied all your files across. The home network is easy to remember, but the office, the holiday cottage, your parents' house and the hotspot on your phone often are not.
How to see a saved Wi-Fi password on the old PC
The quickest way to find one password is in Settings. In Windows 11, open Settings > Network & internet > Wi-Fi > Manage known networks, click a network, and look for the option to view the Wi-Fi security key. At the time of writing this is available in current Windows 11 builds; older builds and Windows 10 do not have it.
The method that works on both Windows 10 and 11, for any saved network, is the command line:
- Right-click Start and choose Terminal (Admin) or Windows PowerShell (Admin), or open Command Prompt as administrator.
- Type
netsh wlan show profilesto list every saved network. - Type
netsh wlan show profile name="HomeNetwork" key=clear, replacing HomeNetwork with the exact name from the list. - Look for the line Key Content under Security settings. That is the password.
For the network you are connected to right now, there is also the classic route: Control Panel > Network and Sharing Center, click the Wi-Fi connection, then Wireless Properties > Security and tick Show characters.
How to export all Wi-Fi networks at once
If you have more than a handful of networks, exporting them all is faster than writing passwords down. On the old PC, in an administrator command prompt:
- Create a folder, for example
mkdir C:\WiFi. - Run
netsh wlan export profile key=clear folder=C:\WiFi. - Windows writes one XML file per network, named like
Wi-Fi-HomeNetwork.xml. - Copy the
C:\WiFifolder to a USB stick or to the new PC along with your other files.
The key=clear part is what includes the password. Without it, the files contain an encrypted key that only the old PC can read, and the import will not give you a working connection.
How to import Wi-Fi profiles on the new computer
Copy the folder to the same place on the new PC, open an administrator command prompt, and add each profile:
- For a single network:
netsh wlan add profile filename="C:\WiFi\Wi-Fi-HomeNetwork.xml" user=all - For every file in the folder at once, in Command Prompt (not PowerShell):
for %f in (C:\WiFi\*.xml) do netsh wlan add profile filename="%f" user=all - Check the result with
netsh wlan show profiles.
The user=all option makes the network available to everyone who uses the PC, which is what most people expect. When the new PC is in range of one of those networks, it will connect automatically if the profile was set to connect automatically on the old PC.
Delete the export folder afterwards. Files exported with key=clear contain every password in plain text. Once the networks are imported, delete C:\WiFi on both PCs and from any USB stick you used.
What the manual method does not cover
The netsh method works well for home and small office networks, but it has a few gaps:
- Work and school networks that sign you in with a username and password (WPA2 or WPA3 Enterprise) do not store a shared key. You will need to sign in again, or your IT team will push the settings.
- It is easy to miss a step. Forgetting
key=clear, running the prompt without administrator rights, or using the PowerShell syntax in Command Prompt all produce errors or profiles without passwords. - The passwords sit in plain text on a USB stick until you remember to delete them.
- Signing in with a Microsoft account is not a reliable substitute. Windows Backup can remember some preferences, but do not count on it to bring every Wi-Fi network, and a local account gets nothing.
Wi-Fi is also only one of several settings that do not travel with your files. Printers, mapped network drives and regional formats are in the same boat; see how to transfer Windows settings to a new computer for the rest.
Which networks are worth bringing?
Before you export, run netsh wlan show profiles and look at the list. Many PCs have years of networks saved: cafes, airports, hotels and phones you no longer own. A new computer is a good chance to leave those behind.
| Network type | Bring it? |
|---|---|
| Home and family networks | Yes |
| Your phone's hotspot | Yes, if you still use the same phone |
| Office network with a shared password | Yes |
| Work or school network with a personal sign-in | No, sign in again on the new PC |
| Hotels, cafes, airports, guest networks | Usually not |
To delete an unwanted profile on the new PC after importing, use netsh wlan delete profile name="OldCafe", or click it in Manage known networks and choose Forget.
The easier way: move Wi-Fi networks with Computer Copier
Computer Copier includes saved Wi-Fi networks with their passwords as one of its settings options. You tick it in the "What to bring" list alongside your files and any other settings you want, and the networks are added to the new PC as part of the same transfer. There are no commands to type and no plain-text password files to remember to delete.
It asks for administrator permission once when it starts, which is what allows it to add Wi-Fi networks on the new PC. Wi-Fi networks are added machine-wide, so they work for every account on the new computer, and every settings change it makes can be undone from the "Reports & undo" screen.
The transfer itself runs over your home network or a USB drive, directly between your two PCs. If you are moving everything at once, the guide to transferring files from an old PC to a new PC covers the full process, and the new computer setup checklist lists the other things worth sorting before you retire the old machine.
Frequently asked questions
How do I see a saved Wi-Fi password on Windows?
Run netsh wlan show profile name="NetworkName" key=clear in Command Prompt. The password appears next to Key Content.
Can I export all my Wi-Fi networks at once?
Yes. netsh wlan export profile key=clear folder=C:\WiFi saves each network as a file that netsh wlan add profile can import on the new PC.
Is it safe to export Wi-Fi passwords?
Exported files with key=clear contain passwords in plain text, so delete them once the networks are imported.
