Skip to main content
Windows

Forgotten Your Wi-Fi Password? How to Recover Saved Passwords on Windows 10 Without Being Connected

Lost your Wi-Fi password but need to connect a new device? Learn the professional command-line trick to reveal every saved password on your Windows 10 PC, even for networks you aren't currently using.

Updated
7 min read

Key Takeaways

  • 1Windows stores a 'profile' for every Wi-Fi network you have ever successfully connected to.
  • 2You can retrieve these passwords even if you are not currently connected to the network in question.
  • 3The process uses the built-in 'netsh' command, requiring no third-party software or risky downloads.
  • 4This method works identically in both the standard Command Prompt and Windows PowerShell.
  • 5The 'Key Content' field in the command output is where the plain-text password is revealed.

The Mystery of the Missing Wi-Fi Password

We have all been there. A friend comes over and asks for your Wi-Fi password, or you just bought a new tablet and want to get it online. You head to the back of your router, but the sticker is faded, or perhaps you changed the password months ago and completely forgot what you set it to. You check your phone, but it doesn't show the characters. It is a moment of digital paralysis that usually ends with someone having to reset the entire router and reconfigure every device in the house.

But here is a secret that most casual users don't know: your Windows 10 computer is a digital vault. Every time you connect to a network, Windows creates a detailed profile that includes the security settings and, most importantly, the password. Even if you aren't connected to that network right now—maybe it's your office Wi-Fi and you are working from home—the data is still there, buried in your system files. Today, I am going to show you the 'Advanced Method' to extract that information in seconds using a few simple lines of code.

Quick Answer: How to See Your Saved Wi-Fi Password

To see a saved Wi-Fi password on Windows 10, open Command Prompt or PowerShell and type the command: netsh wlan show profiles name="YourWiFiName" key=clear. Replace 'YourWiFiName' with the actual name of your network. Look for the 'Security settings' section in the results; the password will be listed next to 'Key Content'. This trick works even if you are currently disconnected from the Wi-Fi or have 'forgotten' the network in your basic settings menu.

Step 1: Accessing the Command Center

To begin this process, we need to move away from the pretty buttons of the Windows UI and into the command-line interface. Don't be intimidated—you don't need to be a hacker to do this. You have two main choices: the classic Command Prompt (CMD) or the more modern Windows PowerShell.

Press the 'Windows Key' on your keyboard and type either 'cmd' or 'powershell'. You do not necessarily need to 'Run as Administrator' for this specific task, as retrieving your own saved profiles is generally permitted for standard users. Once the black or blue window opens, you are ready to start communicating directly with your computer's network manager.

Note

In the source video, the creator demonstrates that this works perfectly in both environments. Choose whichever one you feel more comfortable with; the commands are exactly the same.

Step 2: Finding the Exact Name of Your Wi-Fi

Before you can ask Windows for a password, you need to know exactly what the network is called in the system's database. This is known as the SSID (Service Set Identifier). If you have a space in your name or a special character, you must get it exactly right, or the command will fail.

To see a list of every Wi-Fi network your computer remembers, type the following command and hit Enter:

list-profilesbash
netsh wlan show profiles

You will see a list under 'User profiles.' These are all the networks you have connected to in the past. Find the one you are looking for and make a note of the exact spelling.

Step 3: Running the Advanced Extraction Command

Now for the 'Advanced Method.' We are going to use the 'netsh' (Network Shell) utility to pull the security key in plain text. This is much faster than digging through the 'Network and Sharing Center' in the Control Panel, which often only shows the password for the network you are currently using.

Type the following command, but replace the placeholder with your Wi-Fi name:

show-passwordbash
netsh wlan show profiles name="WiFi Name" key=clear

For example, if your Wi-Fi is named 'Danzig' as seen in the source video, your command would look like this:

example-commandbash
netsh wlan show profiles name="Danzig" key=clear

Step 4: Reading the Results

After you hit Enter, a large block of text will appear. It contains everything from the connection type to the MAC randomization settings. Don't let the technical jargon overwhelm you; we are only looking for one specific line.

Scroll down to the section titled 'Security settings.' Inside that block, look for the line that says 'Key Content.' The text to the right of the colon is your Wi-Fi password. In the example from our tutorial video, the password was revealed as 'password@red'.

Pro Tip

If the 'Key Content' field is missing entirely, it usually means you forgot to add the 'key=clear' part of the command. Without that specific instruction, Windows will hide the password for security.

Step 5: Testing and Verifying

To be 100% sure the method is legit, the original creator of the video performed a 'forget network' test. They disconnected from their Wi-Fi, told Windows to 'forget' the connection, and then attempted to reconnect using the password they just extracted from the PowerShell window.

If you are following along, you can do the same. Copy the password (you can use Ctrl+C in most modern terminal windows), go to your Wi-Fi settings, and paste it in. If the connection is successful, you have officially mastered the advanced way to recover network credentials.

Troubleshooting Common Issues

Sometimes the command-line doesn't behave as expected. Here are the most common reasons why the 'Advanced Method' might fail and how to fix them.

1. 'The system cannot find the file specified' or Profile Not Found

This usually happens because of a typo in the Wi-Fi name. Remember that if your Wi-Fi name has a space (e.g., My Home Wi-Fi), you MUST wrap the name in double quotes in the command. If you don't use quotes, the command-line thinks 'Home' and 'Wi-Fi' are separate commands and will get confused.

2. No 'Key Content' Shown

As mentioned before, 'key=clear' is the magic phrase. If you leave it out, you will see 'Security Key: Present' but the actual characters will be masked. Additionally, if the network is an 'Open' network (one without a password), the Key Content field will naturally be empty because there is no password to show.

3. Permission Denied

In rare cases on corporate or school laptops, the IT department may have blocked the ability to view WLAN profiles via the command line. If you get a 'permission denied' error even when running as Administrator, your system might have a Group Policy in place preventing this specific extraction.

Common Mistakes to Avoid

Avoid

Do not download 'Wi-Fi Password Recovery' tools from untrusted websites. Many of these programs are actually malware or 'adware' that can steal your data. The netsh command is a built-in Windows tool that is 100% safe and free.

Avoid

Avoid sharing the 'Key Content' with people you don't trust. While this guide is for recovering your own password, anyone with access to your computer can run this command. If you are worried about security, consider clearing your sensitive network profiles if you are selling or lending your laptop.

The Wrong Version of Windows

While this guide specifically targets Windows 10, it also works on Windows 11. However, if you are using a very old version like Windows 7, the command syntax for netsh might differ slightly or require different parameters to reveal the key in clear text.

Frequently Asked Questions

Can I see passwords for networks I've never connected to?

No. This method only retrieves passwords that are already stored in your computer's local profile database. Your computer must have successfully connected to the network at least once in the past to have the 'handshake' data and key stored.

Does this work if the Wi-Fi is currently turned off?

Yes. The netsh command reads the profile information from your hard drive, not from the airwaves. As long as the profile exists on your PC, you can view the password without having your Wi-Fi card active.

What if the password was changed at the router?

If the password was changed at the router and you haven't connected since then, your computer will still show the *old* password. Windows only knows what you last told it. It cannot 'guess' the new password remotely.

Can I use this on a Mac?

No, netsh is a Windows-specific utility. On a Mac, you would use the 'Keychain Access' app or the 'security find-generic-password' command in the Terminal to achieve a similar result.

Conclusion

Recovering a forgotten Wi-Fi password doesn't have to involve crawling under desks to find router stickers or performing hard resets. By leveraging the power of the Windows command line, you can access your own stored data with surgical precision. This 'Advanced Method' is a must-know for any power user or someone who just wants to save time when setting up a new device.

At Learn Tech, we are all about finding these simple tricks that save you hours of frustration. If this guide helped you get back online, be sure to share it with a friend who is currently struggling with their router. Stay tuned for more deep-dives into the hidden features of your favorite operating systems!

About the Author

This guide was created by the lead tech educator at Learn Tech. With a background in network administration and a passion for making complex computer tasks accessible to everyone, we specialize in providing trustworthy, no-nonsense tutorials for the modern user. Our goal is to empower you to master your hardware and software, one command at a time.

Tags:#how-to#tech tips#Android

Found this helpful?

Share this article

Related Articles