Recovering a saved Wi-Fi password from your PC is possible when you are connected to or have previously saved a network, useful when you need the password for another device. Windows 11 can display saved Wi-Fi passwords through the Command Prompt.
The Command
netsh wlan show profile name="NetworkName" key=clear
What It Does
This shows the full profile for the named Wi-Fi network, and the `key=clear` part reveals the password in plain text under the Key Content line in the Security settings section. Replace NetworkName with the exact name TANGKAS39 of the Wi-Fi network. The command displays the stored password for a network your PC has connected to before.
When You’d Use This
This is genuinely handy when you need a saved Wi-Fi password for another device, such as connecting a phone, tablet, or guest laptop to a network your PC already knows, but you have forgotten the password itself. Rather than resetting the router or hunting for a written note, you can retrieve the stored password directly from your PC.
Useful Variations
To first list all saved network profiles by name, run `netsh wlan show profiles`, then use the exact name in the command above. This works for networks your PC has saved, whether or not you are currently connected to them, as long as the profile is stored on the system.
If It Doesn’t Work
If the password does not appear, confirm you used the exact network name, which you can list with `netsh wlan show profiles`, and that your PC has actually saved that network. Viewing the password typically requires administrator rights, so run the terminal elevated if the key content is missing. This only works for networks saved on your PC, not ones you have never connected to.
Good to Know
This only reveals passwords for networks already saved on your PC, not networks you have never connected to. Viewing saved passwords typically requires administrator rights. Naturally, use this only for networks you are authorized to access, such as your own, since it exposes the stored credentials in readable form.
Putting It Together
The command shown may look dense at first, but it breaks down into clear parts once you have used it a few times. As part of diagnosing and configuring your connection, this command belongs in your toolkit for whenever the network acts up. Used alongside the other networking commands here, it helps you methodically work from confirming basic connectivity to pinpointing exactly where a problem lies. Like anything in the terminal, the real value comes from trying it on your own system and adapting the variations above to what you actually need, so it is worth experimenting with in a safe, low-stakes situation before relying on it in a script or during troubleshooting. Keeping a note of the commands you find most useful, along with the variations that fit your workflow, turns scattered one-off tricks into a personal reference you can draw on whenever a similar task comes up again.
