Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Find All WiFi Passwords on Windows via Command Prompt

· 4 min read · Home Networking

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can view every WiFi password your Windows PC has ever connected to, right from Command Prompt or PowerShell. Windows stores these profiles in the system, and a single command reveals the saved key for each network. No extra software needed—just an administrator account. Below is the exact step-by-step process, plus what to do when a password doesn't show up.

What You'll Need

  • A Windows PC (Windows 10 or Windows 11; steps are nearly identical on older versions).
  • An administrator user account (you'll need to open Command Prompt as admin).
  • At least one saved WiFi network (the PC must have connected to it before).

Step-by-Step

  1. Open Command Prompt as Administrator
    Click the Start button, type cmd or Command Prompt. In the search results, right-click on Command Prompt and select Run as administrator. If prompted by User Account Control, click Yes.
  2. List All Saved WiFi Profiles
    Type the following command and press Enter:
    netsh wlan show profiles
    This displays every WiFi network your PC has a saved profile for. The names appear under "All User Profile"—note the exact spelling of each network name you want the password for.
  3. View the Password for a Specific Network
    Type this command, replacing WiFiName with the exact network name from step 2:
    netsh wlan show profile name="WiFiName" key=clear
    For example: netsh wlan show profile name="HomeNetwork" key=clear
  4. Find the Password in the Output
    Scroll through the results. Look for the section labeled Security settings. Next to Key Content, you'll see the plain-text WiFi password. If it says Key Content: None, the network is open (no password).
  5. Repeat for Other Networks
    Run the same command with each network name from the list to see all passwords.

Common Mistakes

  • Not running as administrator: If you open Command Prompt normally, you'll get an error like "The request is not supported" or "Access denied." Always use Run as administrator.
  • Typing the network name incorrectly: The name must match exactly, including spaces and capitalization. Use the name exactly as shown in the show profiles output.
  • Forgetting the key=clear part: Without it, Windows hides the password and shows Key Content: None even for secured networks.
  • Looking at the wrong section: The password is under Security settings, not under "Profile Information" or "Connection Mode".

Tips

  • Export all profiles at once: To save all WiFi profiles (including passwords) to an XML file on your desktop, run:
    netsh wlan export profile folder="C:\Users\YourName\Desktop" key=clear
    Replace YourName with your Windows username. This creates one XML file per network; open any file to see the password in the keyMaterial tag.
  • Use PowerShell if you prefer: The same commands work in PowerShell when run as administrator.
  • Check hidden networks: Hidden networks still appear in the profile list if you've connected before.
  • Works for enterprise networks too: If your workplace uses a corporate WiFi with a username/password, the key=clear may not show a simple password—it might show a certificate or other authentication details.

Troubleshooting

"No profiles found" or an empty list: This means the PC has never connected to any WiFi network, or the WiFi adapter is disabled. Enable WiFi from the taskbar or Settings > Network & Internet > Wi-Fi, then connect to a network and try again.

"The system cannot find the file specified" when running the profile command: The network name you typed doesn't match any saved profile. Re-run netsh wlan show profiles and copy the exact name.

Key Content shows "None" even with key=clear: The network is either open (no password) or uses a different authentication method (like a certificate). For open networks, there's no password to retrieve. For certificate-based networks, the password is not stored in a readable format.

Command Prompt says "Access denied" or "Request not supported": You're not running as administrator. Close Command Prompt, right-click it again, and choose Run as administrator.

You're on a company-managed PC: Group policies might block viewing WiFi passwords. In that case, contact your IT department—there's no user-level workaround.

Frequently Asked Questions

Can I see the password for a WiFi network I'm not currently connected to?

Yes, as long as the PC has connected to that network at least once and the profile is saved, the command works regardless of current connection status.

Do I need an internet connection to run these commands?

No, the commands work entirely offline. They read local system files.

Is this legal? Can I use this to get my neighbor's WiFi password?

It's legal to view passwords for networks you own or have permission to access. Using this to access someone else's network without permission is illegal and unethical. The commands only show passwords for networks your PC has already connected to.

Will this work on Windows 7 or Windows 8?

Yes, the same commands work on Windows 7 and 8, though the steps to open Command Prompt as admin differ slightly (search for "cmd" and press Ctrl+Shift+Enter).

Can I recover a password for a network that was deleted from the saved list?

No. Once a profile is deleted (via Settings > Network & Internet > Wi-Fi > Manage known networks > Forget), the password is gone from the system. You'd need to reconnect to the network and enter the password again.

What if the WiFi password is stored as a "passpoint" or "WPA2-Enterprise"?

For enterprise networks, the key=clear command may show a username and domain, but not a simple password. The actual credentials are managed by your organization and are not stored in plain text on your PC.