
How to Find the Wifi Password on Pc? Use Command Prompt
Introduction For most people, connecting to a Wi-Fi network is a one-time action. Once your PC remembers the network, you can go online without typing the password again. However, there are plenty of situations where you might need to retrieve that saved passw
Introduction
For most people, connecting to a Wi-Fi network is a one-time action. Once your PC remembers the network, you can go online without typing the password again. However, there are plenty of situations where you might need to retrieve that saved password. Maybe you just bought a new phone and want to connect it, or perhaps a friend needs the details, or you’re setting up another device and simply forgot it.
If you’ve ever found yourself in this exact position, knowing How to Find the Wifi Password on Pc? using Command Prompt is one of the quickest, most reliable, and safest ways to do it. Unlike some third-party apps, this method uses built-in tools already on Windows, requires no downloads, and works on most modern Windows versions.
This guide will walk you through everything you need to know, from understanding how Windows stores Wi-Fi credentials to retrieving them with Command Prompt, checking them on different Windows editions, troubleshooting common errors, and keeping your network secure. By the end, you’ll be able to recover any previously saved Wi-Fi password on your PC with confidence.
Table of Contents
- Why You Might Need to Find a Saved Wi-Fi Password
- How Windows Stores Wi-Fi Passwords
- Prerequisites Before You Start
- Step 1: Find All Saved Wi-Fi Profiles on Your PC
- Step 2: Find the Wi-Fi Password on PC Using Command Prompt
- Understanding the Command Prompt Output
- Alternative Built-In Ways to Cross-Check
- Does This Work on Windows 10, Windows 11 and Older Versions?
- Common Errors and How to Fix Them
- Comparison of Methods to View Saved Wi-Fi Passwords
- Tips for Security, Sharing and Organization
- When Command Prompt May Not Be Enough
- Frequently Asked Questions
- Conclusion
Why You Might Need to Find a Saved Wi-Fi Password
There are more practical reasons to look up a saved network key than people realize. Before learning the exact steps for How to Find the Wifi Password on Pc?, it’s worth knowing why this is such a useful skill:
- Connect new devices: Smart TVs, tablets, e-readers, or gaming consoles often need the Wi-Fi key manually entered.
- Share with trusted people: If a guest visits, you may need to give them the correct password without resetting your router.
- Recover a forgotten key: Many people change routers over the years and only have it saved on their PC.
- Reconfigure network equipment: Extenders, mesh nodes, or access points sometimes ask for the existing Wi-Fi credentials.
- Troubleshooting: Verifying the exact password can help rule out typing errors during connection issues.
In all of these cases, pulling it directly from a trusted PC that has already connected is far easier than guessing or performing a full router reset.
How Windows Stores Wi-Fi Passwords
When you connect to a wireless network for the first time and choose to save it, Windows creates a local profile for that network. These profiles are stored in a secure configuration area managed by the Wireless AutoConfig service. Alongside details like the network name (SSID) and security type, Windows securely keeps the network security key for profiles you’ve allowed it to remember.
The Command Prompt method works by calling the netsh utility, which is designed to query these saved wireless profiles and display the stored key in plain text for your current user context. Since this data is already saved locally, you don’t need admin rights to view profiles on most personal PCs, though running Command Prompt with standard access is more than enough for this task.
Prerequisites Before You Start
To safely follow this guide on How to Find the Wifi Password on Pc?, make sure the following are true:
- You’re using a Windows PC: This method is written for Windows 10 and Windows 11. It also applies to many Windows 8.1 builds.
- The network was previously connected: If the PC has never connected to that Wi-Fi network, Windows will have no saved profile or password for it.
- You’re on an account with access to this PC: You can only view keys for profiles saved on this specific machine.
- Command Prompt is available: This is built into all supported Windows versions by default.
There is no need to disable security features or modify network settings to do this. It’s a read-only lookup.
Step 1: Find All Saved Wi-Fi Profiles on Your PC
Before you can reveal a specific password, you need to know the exact name of the Wi-Fi network you’re looking for. Windows treats each network name as a separate profile, so spelling and capitalization matter exactly as it was saved.
Follow these steps:
- Press the Windows key on your keyboard.
- Type
cmdin the search bar. - Click Command Prompt from the results. (You do not need “Run as administrator” for viewing saved wireless profile names and keys on a standard personal PC.)
- In the Command Prompt window, copy and paste the following command:
netsh wlan show profiles
- Press Enter.
After a moment, you’ll see a list under the heading User profiles. Each entry next to All User Profile is the exact SSID of a Wi-Fi network that this PC has connected to and saved in the past. Take note of the exact name of the network whose password you want to retrieve.
Step 2: Find the Wi-Fi Password on PC Using Command Prompt
Now that you know the profile name, you can extract its saved security key. This is the core step for How to Find the Wifi Password on Pc? using Command Prompt.
- Make sure the same Command Prompt window is still open.
- Type the following command, replacing
NetworkNamewith the exact name of your saved Wi-Fi network from Step 1:
netsh wlan show profile name="NetworkName" key=clear
- Press Enter.
Windows will now display a full breakdown of that profile. Scroll down until you reach the section titled Security settings.
Look for the line labeled Key Content. The value next to it is the Wi-Fi password in plain text for that network.
Tip: If the network name has spaces, keep the quotation marks exactly as shown above. If it has no spaces, quotation marks are still safe to use and prevent errors.
Understanding the Command Prompt Output
When you run the key-clear command, you’ll see several fields. Knowing what they mean helps avoid confusion:
- Profile name: Confirms you’re looking at the correct SSID.
- Mode: Shows how the network is configured for this PC.
- Authentication: Tells you the security method used, such as WPA2-Personal or WPA3-Personal.
- Encryption: Usually AES for modern secure networks.
- Security settings: The area that contains your key.
- Key Content: This is the exact saved Wi-Fi password.
You only need the Key Content value. Everything else is mostly for reference and can be ignored for this task.
Alternative Built-In Ways to Cross-Check
While Command Prompt is the focus of this guide, there are a couple of built-in Windows options you can glance at for confirmation. These won’t always show the key directly on every setup, but they’re worth knowing.
- Wi-Fi status from the network list: On some Windows builds you can view connection properties, but the “show password” option is often hidden unless accessed through the network properties in older paths.
- Network and Internet settings: Windows Settings can show which network you’re connected to, but it does not reliably reveal saved passwords for all previously used networks from that screen.
For retrieving passwords for networks you aren’t currently connected to, the Command Prompt netsh approach remains the most consistent and thorough built-in method.
Does This Work on Windows 10, Windows 11 and Older Versions?
Yes, for the vast majority of cases. The netsh wlan commands have been present for well over a decade and are still fully functional in current Windows releases.
The steps are identical between Windows 10 and Windows 11. The only visual difference is the way you open Command Prompt (through search), but the commands and output remain the same. On very old Windows versions, some wording may differ slightly, but the key=clear and Key Content fields are the ones to look for.
If your system is heavily restricted by a managed work or school account, policies can block access to saved wireless details. That is the main exception to this working out of the box.
Common Errors and How to Fix Them
Even though this is straightforward, a few small issues can come up when trying to find out How to Find the Wifi Password on Pc? via Command Prompt. Here’s how to fix them:
| Error or Issue | Cause | Fix |
|---|---|---|
| The profile name doesn’t appear in the list | The PC never connected to that network, or it was removed. | Reconnect to that Wi-Fi network first and choose to save it, then run the steps again. |
| Spelling doesn’t match when using the second command | Capital letters, underscores, or dashes matter exactly. | Copy the exact profile name from the netsh wlan show profiles output, including spaces, and use quotes. |
| No “Key Content” appears | Open networks have no password, or security info isn’t shown. | Check the “Authentication” field. If it says “Open”, there is no network key. |
| Command not recognized | Typed incorrectly or in the wrong shell. | Use Command Prompt, not PowerShell in a rare mis-typed context. Double-check the exact netsh syntax. |
| Blank Key Content | Local policy or unusual profile corruption. | Try again on the same user account. If it’s a managed device, restrictions may apply. |
Comparison of Methods to View Saved Wi-Fi Passwords
Before relying on any approach, it’s helpful to see how Command Prompt stacks up against other built-in options:
| Method | Works for non-connected networks | Needs extra software | Plain text password shown | Reliability | Notes |
|---|---|---|---|---|---|
Command Prompt (netsh) |
Yes | No | Yes (via Key Content) | Very high | Best all-around for Windows PCs with saved profiles. |
| Windows Settings (connected network) | No | No | Varies by build | Low to moderate | Often doesn’t expose keys for older saved networks. |
| Network Connections properties | Only in specific legacy views | No | Rarely shown directly | Low | More of a connection info view than a password retriever. |
| Router admin page | Yes, if still set to default | No | Sometimes | Moderate | Only works if you know router login details and haven’t changed them. |
As shown above, Command Prompt is the sweet spot for this exact use case.
Tips for Security, Sharing and Organization
Retrieving your own saved password is perfectly safe when done on your own trusted PC. That said, it’s smart to keep a few best practices in mind:
- Only use it on your own device: Avoid running these commands on public, shared, or borrowed PCs to view sensitive details.
- Share carefully: If you share a Wi-Fi password, only give it to people you trust. Consider using your router’s guest network if available.
- Don’t post it publicly: Never paste your Wi-Fi key in forums, chats, or notes visible to others.
- Keep records securely: If you need to store passwords, use a reputable password manager rather than a plain text file on your desktop.
- Update when needed: If you suspect your network key has been exposed, change it through your router settings and reconnect devices.
- Clean up old profiles: If you no longer use a network, Windows can forget it. This keeps your profile list tidy without affecting anything you still use.
When Command Prompt May Not Be Enough
There are a few edge cases where this method won’t reveal the password, even if the network was connected before:
- Managed devices: Work, school, or library PCs often have group policies that prevent querying wireless credentials.
- Profile was deleted: If “Forget network” was used, Windows removes the saved profile and its key.
- Third-party network managers: Some OEM software overrides Windows wireless management and doesn’t store keys in the standard
netshprofile list. - Extremely old or corrupted profiles: Rare profile corruption can stop the key from displaying, though reconnecting usually fixes it.
In those situations, your fallback would be to check your router’s sticker, recover it from another device that’s still connected, or log into your router interface if you know the router credentials.
Frequently Asked Questions
Is it safe to use Command Prompt to find a saved Wi-Fi password?
Yes. You’re only reading locally stored information from profiles already saved by Windows. No network traffic is intercepted and no changes are made by these read-only commands.
Do I need to run Command Prompt as administrator?
For viewing saved Wi-Fi profile names and the Key Content on most personal Windows installations, running as a standard user is sufficient. If you encounter access restrictions on a managed account, you won’t be able to bypass them regardless.
Can I find the Wi-Fi password on PC if I’m not currently connected to it?
Yes. This is one of the biggest advantages of this method. As long as the PC has connected to that network at some point in the past and saved the profile, you can retrieve its password even while connected to a completely different network.
What if the network has no password?
If it’s an open network with no security key, the Key Content field will either be missing or not appear. The Authentication value will usually show something like Open instead.
Will this work for mobile hotspots?
Only if your PC has connected to that hotspot and saved its profile. Many phone hotspots create new network names over time, so it depends entirely on whether that exact SSID was saved.
Can I do this for Ethernet?
No. This method is specific to wireless (WLAN) profiles. Wired Ethernet connections don’t use a shared Wi-Fi password in the same saved profile format.
Is there any risk of showing the password to others on screen?
The password appears in plain text in the Command Prompt window. If others can see your screen at that moment, they can read it. Be mindful of your surroundings before displaying Key Content.
Conclusion
Knowing How to Find the Wifi Password on Pc? using Command Prompt is a practical skill that saves time in countless everyday situations. With just two netsh commands, you can list every saved wireless network and reveal the exact password for any of them without installing anything or touching your router.
The process is simple: open Command Prompt, list your saved profiles, run the profile query with key=clear, and look for Key Content. As long as the network was previously saved on that PC, this will work for the vast majority of Windows 10 and Windows 11 setups.
Just remember to use this only on your own trusted device, keep any recovered passwords secure, and follow the troubleshooting tips if you run into errors. With this guide, you now have a clean, reliable way to recover any saved Wi-Fi password straight from your PC whenever you need it.