How to find out the Wi-Fi password over a local network in Windows: all working methods

Forgot your home Wi-Fi password and there's no sticker on your router? Or do you need to connect a new device but have restricted access to the router? Windows offers several built-in ways to retrieve saved passwords for your current or previously connected networks—without hacking or third-party software. The main requirement is that your computer must have successfully connected to this network at least once.

In this article we will analyze 5 proven methods, including the command line, PowerShell, registry editor, and specialized utilities. All of them work on Windows 10 And Windows 11, but some require administrator rights. We'll also explain why. You can't recover a password for a network you've never connected to. - This is a security limitation of the operating system.

Important: If you attempt to access someone else's network without permission, this is a violation of the law (Article 272 of the Criminal Code of the Russian Federation). This article is intended only for restoring access to your own networks for which the password has been lost.

📊 How often do you forget your Wi-Fi passwords?
Often, once a month
Sometimes, once every six months
There is always a note nearby
I never forget

1. View the password through the Network and Sharing Center (the easiest way)

If your computer is connected to Wi-Fi right now, the fastest way is to use the Windows graphical interface. This method doesn't require the command line and is suitable even for beginners.

Open Control Panel (click Win + R, enter control and press Enter). Go to the section Network and Internet → Network and Sharing Center. In the block View active networks** Click on the name of your Wi-Fi network (link next to Connections).

In the window that opens, click the button Wireless network properties, then go to the tab "Safety"**. Check the box next to Show entered characters — in the field Network security key The current password will be displayed.

  • ✅ Works without administrator rights (if you are already connected to the network).
  • ⚡ Faster than all other methods - takes less than 30 seconds.
  • 🔒 Shows password only for current networks, not for previously saved ones.
⚠️ Attention: If the button Wireless network properties If the button is inactive, it means your computer is connected to the network via Ethernet (cable) and not Wi-Fi. In this case, use the methods in the following sections.

2. Command Prompt: How to Find All Saved Wi-Fi Passwords

Through CMD it is possible to extract passwords all networks, to which this computer has ever been connected—even if you're currently using a cable. This method requires administrator rights.

Open Command Prompt as Administrator (Win + X → Terminal (Administrator)) and execute two commands in sequence:

netsh wlan show profiles

This command will list all saved networks. Copy the name of the desired network (for example, TP-Link_5G).

netsh wlan show profile name="TP-Link_5G" key=clear

In the execution results, find the line Key content — this is the password. If the password is blank, it means the network is saved without a key (for example, a guest network without encryption).

  • 📋 Shows passwords for all saved networks, and not just the current one.
  • 🔐 Requires administrator rights.
  • 🖥️ Works in Windows 7/8/10/11.

Run CMD as administrator | Network is listed netsh wlan show profiles|Network name in the command in quotes|Spaces before key=clear absent-->

Method Requires admin rights Shows the current network Shows all networks Works without connection
Network and Sharing Center ❌ No ✅ Yes ❌ No ❌ No
Command line ✅ Yes ✅ Yes ✅ Yes ✅ Yes
PowerShell ✅ Yes ✅ Yes ✅ Yes ✅ Yes

3. PowerShell: A CMD Alternative for Advanced Users

PowerShell offers a more flexible way to extract passwords, especially if you need to export the data to a file. Open PowerShell as administrator (Win + X → Windows PowerShell (Administrator)) and run:

(netsh wlan show profiles) | Select-String "\:(.+)$" | %{$name=$_.Matches.Groups[1].Value.Trim(); $_} | %{(netsh wlan show profile name="$name" key=clear)} | Select-String "Key contents\W+\:(.+)$" | %{$pass=$_.Matches.Groups[1].Value.Trim(); $_} | %{[PSCustomObject]@{PROFILE_NAME=$name;PASSWORD=$pass}} | Format-Table -AutoSize

This command will output a table with all saved networks and their passwords. If you want to save the result to a file, add the following to the end:

| Out-File -FilePath "C:\WiFi_Passwords.txt"

File WiFi_Passwords.txt will appear on the disk C:\.

⚠️ Warning: Do not save the password file to cloud folders (OneDrive, Google Drive) or to your desktop—this is unsafe. After use, delete the file manually.

4. Registry Editor: Where Windows Stores Wi-Fi Passwords

All Wi-Fi network passwords are stored encrypted in the Windows registry. They can be extracted manually, but the process is more complex than using the command line. This method is suitable if other methods fail (for example, due to corrupted system files).

Open Registry Editor (Win + R → regedit) and follow the path:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Wlansvc\UserData\Interfaces

In the folder Interfaces There will be subfolders with long names (these are network adapter IDs). Open each one in turn and find the section ProfilesInside it are folders with the names of Wi-Fi networks. Each folder will contain a file Properties, where in the parameter Description the network name is indicated, and in PSKValue — encrypted password.

To decipher PSKValue, you will need a third-party utility (for example, WirelessKeyView from NirSoft) or script on PowerShellWithout additional tools, this method is useless.

How to decrypt PSKValue manually?

For manual decryption, you need to write a script in C# or use the Windows API CryptUnprotectDataThe process requires programming knowledge. Ready-made solutions:

1. Utility WirelessKeyView (portable, no installation required).

2. Script Get-WifiPassword.ps1 (can be found on GitHub).

3. Online services (not recommended – risk of data leakage).

5. Third-party Wi-Fi password recovery programs

If Windows' built-in methods don't work, you can use specialized utilities. They automate the process and often display additional information (such as the encryption type).

The most reliable programs:

  • 🔧 WirelessKeyView (NirSoft) - portable, shows all saved passwords, works without installation.
  • 🛡️ WiFi Password Revealer - simple interface, export to .txt.
  • 📊 Magical Jelly Bean WiFi Password Revealer - supports Windows 11, shows the signal strength.

Example of working with WirelessKeyView:

  1. Download the program from official website (chapter Download WirelessKeyView).
  2. Unzip and run WirelessKeyView.exe (admin rights are not required).
  3. Find the required network in the table - the password will be in the column Key (Ascii).
⚠️ Warning: Download programs only from official websites. Many "Wi-Fi hackers" listed in search results contain viruses or spyware.

6. What to do if none of the methods worked?

If none of the methods helped to recover the password, the reasons may be as follows:

  • 🔌 The computer has never connected to this network via Wi-Fi (for example, a cable has always been used).
  • 🗑️ Network data was deleted from the system (for example, after resetting Windows).
  • 🔒 The network uses Enterprise authentication (for example, in offices or universities) - its password is not stored locally.
  • 🛡️ Antivirus or group policies are blocking access to system data.

In such cases, there are two options left:

  1. Reset your router settings (press the button Reset for 10 seconds) and set it up again. The default password is usually found on the sticker.
  2. Connect to the router via cable and view the password in the web interface (usually at 192.168.0.1 or 192.168.1.1).

If you rented your router from a provider, contact technical support—they can provide you with the password over the phone (you'll need to confirm your personal information).

FAQ: Frequently Asked Questions about Wi-Fi Password Recovery

Is it possible to find out the password for a Wi-Fi network I've never connected to?

No. Windows only stores passwords for networks this computer has connected to at least once. Someone else's password can only be found out:

  • With the consent of the network owner (he can view it on the router).
  • Through vulnerabilities in the router (illegal and punishable by law).
Why does the command prompt show a blank password for some networks?

This means that the network:

  • Does not have a password (open network).
  • Uses Enterprise authentication (login/password are entered each time you connect).
  • It was saved without a key (for example, via the WPS button).
Is it possible to recover a Wi-Fi password after reinstalling Windows?

No. When you reinstall the system, all saved networks and passwords are deleted. The only options are:

  1. View the password on another device that has connected to this network.
  2. Reset the router and configure it again.
Is it safe to use programs like WirelessKeyView?

Programs from trusted developers (for example, NirSoft) are safe if:

  • Downloaded from official website.
  • Checked by antivirus before launch.
  • Do not request administrator rights without reason.

Avoid "Wi-Fi hackers" from dubious websites - they often contain Trojans.

How to protect your Wi-Fi from password recovery?

To make it more difficult to extract passwords from connected devices:

  • Use WPA3 instead of WPA2 (in the router settings).
  • Turn on MAC filtering (allow connections only from known devices).
  • Change your password regularly (for example, once every 3 months).
  • Turn it off WPS - This protocol is vulnerable to brute force attacks.