Have you ever forgotten your home Wi-Fi password, only to find it hidden under a layer of dust and stickers on your router? Or have you ever needed to connect a new device but couldn't remember the password? Windows stores all saved wireless network passwords—and they can be retrieved without hacking or resetting the router. But where exactly are they?
In this article we will look at All ways to access Wi-Fi passwords in Windows 10 and 11 - from standard tools to hidden system files. You'll learn how to view passwords using Control Panel, command line, PowerShell and even manually in registryAnd also – why some methods can be dangerous and how to avoid data leaks.
Important: password extraction is possible only with administrator rights on the device that was previously connected to the network. If you are trying to access someone else's network, this is a violation of privacy laws (regulated in Russia). Federal Law No. 152).
1. Where are Wi-Fi passwords physically stored in Windows?
Windows doesn't store wireless network passwords in plaintext. Instead, they are encrypted and are distributed across two key locations:
- 📁 WLAN configuration file —
C:\ProgramData\Microsoft\Wlansvc\Profiles\Interfaces\{GUID}. XML files with data about each network are located here, but the password is encrypted. - 🔑 Credential storage —
Credential Manager(credential manager). Passwords are stored here in encrypted form and linked to the user's account. - 🗝️ Windows Registry - branch
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Wlansvc\InterfacesContains technical data about connections, but not the passwords themselves.
The password itself in clear text never stored on disk — it can only be extracted using system utilities that temporarily decrypt the data. This is done to protect against password theft during physical access to the hard drive.
Interesting fact: in Windows 11, the password storage mechanism has not changed compared to the "ten", but an additional layer of protection has been added through Windows Hello (if PIN or biometrics are enabled).
2. Method 1: View the password through Windows Settings (without commands)
The easiest method is to use the built-in network menu. It works in Windows 10 And Windows 11, but requires the device to be connected to the target network (or have been connected previously).
- Open
Settings → Network and Internet → Wi-Fi. - Click
Managing known networks. - Select the desired network and click
Properties. - Scroll down to the block
Network passwordand pressShow.
The system will ask for confirmation via UAC (User Account Control). After entering the administrator password, the password will be displayed in clear text.
Make sure you are logged in as an administrator|Check that the network appears in the list of known networks|Disable your VPN (it may be blocking access to system settings)
-->
⚠️ Attention: If the button Show inactive, means:
- 🔒 You do not have administrator rights.
- 🛡️ Password protected by Windows Hello (you need to enter your PIN or fingerprint).
- 📵 The network was connected via
WPS(without entering a password).
3. Method 2: Command line (netsh) - a universal method
Utility netsh (Network Shell) allows you to manage network settings via the command line. It can be used to retrieve the password for any saved network, even if the device is not currently connected to it.
Open Command line as administrator (click Win + X → Terminal (administrator)) and run:
netsh wlan show profile name="NETWORK_NAME" key=clear
Replace NETWORK_NAME the name of your Wi-Fi network (case is not important). In the output, find the block Security parameters - there will be a line Key content with a password.
Example of command output
Profile name: MyWiFi
...
Security parameters
Authentication type: WPA2-Personal
Encryption type: CCMP
Key content: 12345678
This method works in all versions of Windows starting from VistaThe main advantage is that you don't need to reconnect to the network.
⚠️ Warning: If the command returns an error "Profile not found", Means:
- 📡 The network is not saved in the system (never connected to it).
- 🔄 The network name was entered incorrectly (check case and spaces).
- 🛠️ The profile is corrupted (try
netsh wlan delete profile name="NETWORK_NAME"and reconnect).
4. Method 3: PowerShell - for advanced users
PowerShell offers a more flexible way to handle Wi-Fi passwords than netshFor example, you can export all saved networks to a file or filter them by security type.
Launch PowerShell as 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]@{SSID=$name;PASS=$pass}} | Format-Table -AutoSize
This command:
- Gets a list of all saved networks.
- Extracts the password for each of them.
- Outputs the result as a table with columns
SSID(network name) andPASS(password).
Advantage PowerShell - the possibility of automation. For example, you can write a script that will send passwords by email (but this unsafe!).
| Method | Requires network connection | Works without administrator rights | Shows the password in clear text |
|---|---|---|---|
| Windows Settings | ❌ No | ❌ No | ✅ Yes |
| netsh (command line) | ❌ No | ❌ No | ✅ Yes |
| PowerShell | ❌ No | ❌ No | ✅ Yes |
| Windows Registry | ❌ No | ❌ No | ❌ No (decryption required) |
| Third-party utilities | ❌ No | ⚠️ Depends on the program | ✅ Yes |
5. Method 4: Manual extraction from the registry (for experts)
Wi-Fi passwords are stored in the registry in encrypted form, but they can be decrypted using system functions. This method the most difficult and requires an understanding of how to work with WinAPI.
Steps to extract:
- Open
regedit(Registry Editor) as administrator. - Follow the path:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Wlansvc\Interfaces\{GUID}\Profiles - Find the subfolder with the name of your network (in the format
{GUID}). - In the parameter
ProfileXMLthere will be an encrypted password in the tag<keyMaterial>.
To decrypt the password, you need to:
- Copy value
ProfileXMLto file. - Use CryptUnprotectData (Windows API function) or ready-made utilities like WirelessKeyView.
⚠️ Warning: Incorrectly editing the registry may result in loss of Wi-Fi connection or system failures. It is recommended to create a restore point before experimenting:
Win + R → rstrui → Create a restore point.
6. Method 5: Third-party utilities - fast, but risky
If standard methods don't work, you can use specialized programs. They automate password extraction, but may contain malicious code.
Popular utilities:
- 🔓 WirelessKeyView (from NirSoft) - shows all saved passwords in one window.
- 📊 WiFi Password Revealer — exports passwords to
TXTorCSV. - 🛡️ Magical Jelly Bean WiFi Password Revealer — supports Windows 11.
How to use (using example) WirelessKeyView):
- Download the program from official website (do not use third-party sources!).
- Unzip the archive and run
WirelessKeyView.exe(administrator rights are not required). - The table will display all networks with columns.
Network Name(Name),Password(password) andKey Type(encryption type).
Warning: Many "Wi-Fi hackers" on the internet disguise themselves as TrojansBefore using any utility:
- Check its hash (
SHA-256) on VirusTotal. - Launch in sandbox (For example, Sandboxie).
- Disable the Internet while the program is running.
7. Security: How to keep your passwords safe and prevent leaks
Extracting Wi-Fi passwords is a useful skill, but it comes with risks. Here's how to secure your data:
- 🔐 Store passwords in a manager (For example, Bitwarden or KeePass). It's more reliable than relying on Windows.
- 🛡️ Disable automatic connection to open networks:
Settings → Network & Internet → Wi-Fi → Manage known networks → Disable "Connect automatically". - 🔄 Change your passwords regularly on the router (once every 3-6 months).
- 🚫 Don't share screenshots with passwords - even in private chats.
If you suspect that your network password has become known to outsiders, immediately:
- Go to your router settings (usually at
192.168.0.1or192.168.1.1). - Change your password in the section
Wireless → Security. - Update your router firmware (tab
Administration → Firmware Upgrade).
⚠️ Note: In corporate networks, Wi-Fi passwords are often managed through Active Directory or RADIUS serverIt is impossible to extract them using standard methods - please contact your network administrator.
FAQ: Frequently Asked Questions About Wi-Fi Passwords in Windows
Is it possible to extract Wi-Fi password without administrator rights?
No. All methods (including netsh And PowerShell) require administrator rights. If you have a limited account, ask your system administrator to retrieve the password for you.
Why the team netsh doesn't show password for some networks?
This happens in three cases:
- The network was connected via
WPS(without password). - The network profile is corrupted (try deleting and connecting again).
- Password protected by Windows Hello (you need to enter PIN or biometrics).
How to find out the Wi-Fi password on Mac or Linux?
On macOS open Terminal and run:
security find-generic-password -wa "NETWORK_NAME"
On Linux (if used NetworkManager):
sudo grep psk= /etc/NetworkManager/system-connections/"NETWORK_NAME"
Is it possible to recover a password if Windows is reinstalled?
No. Wi-Fi passwords are stored encrypted and tied to the installed system. After reinstalling Windows, all saved networks are erased. The only way to restore the password is from a backup (if one was made through wbadmin or third-party utilities).
Is it legal to use password extraction programs?
Yes, if:
- You retrieve the password his own networks.
- You do not distribute the data you receive.
- You do not use utilities to hack other people's networks.
No, if you're trying to access a network you don't own. In Russia, this qualifies as unauthorized access to computer information (Article 272 of the Criminal Code of the Russian Federation).