Have you forgotten your home or office Wi-Fi password, but your computer is connected to it? In Windows, all saved wireless network passwords are stored encrypted, but they can be retrieved without installing additional software. This article will cover this in detail. Where are Wi-Fi security keys physically stored?, how to view them using the system's built-in tools, and what alternative methods exist—from the command line to specialized utilities.
We will look at solutions for Windows 10 And Windows 11, including cases where you don't have administrator rights or need to export passwords for backup. Important: All methods only work for networks to which the computer has previously connected. If the network isn't in the list of saved networks, it's impossible to recover the password through Windows—you'll need access to the router or device from which the initial connection was made.
Warning: Extracting passwords from other people's computers without the owner's consent may violate data privacy laws. This guide is intended solely for restoring access to own networks, the passwords for which were lost.
Where are Wi-Fi passwords physically stored in Windows?
All wireless network security keys in Windows are stored in system registry and in service configuration files. Main locations:
- 📁 Windows Registry: branch
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Wlansvc\InterfacesContains encrypted passwords in binary format. They cannot be read directly; decoding is required. - 📄 Configuration files: in the folder
C:\ProgramData\Microsoft\Wlansvc\Profiles\InterfacesXML files with network settings are stored, but the passwords there are also encrypted. - 🔑 Credential storage: service Credential Manager may contain some network keys, but Wi-Fi passwords are usually not included.
Important: Windows encrypts passwords using the current user's credentials and system keys. Without administrator rights, it's impossible to retrieve them—even if you know the path to the files. All legal methods described below require confirmation of rights or entering an administrator password.
Method 1: View your password through Windows Settings (without commands)
The easiest method is to use the graphical interface. It works in Windows 10/11 and does not require knowledge of commands:
- Open
Settings → Network and Internet → Wi-Fi. - Click
Managing known networks. - Select the desired network and click
Properties. - Scroll down to the section
Network passwordand press the buttonShow.
The system will prompt you to confirm administrator rights. After entering the administrator password, the password characters will become visible. This method is suitable for one-time checks, but it doesn't allow you to export a list of all networks.
Check that the computer is connected to the network (or has been connected previously)
Make sure you have administrator rights
Close VPNs and proxies—they may block access to network settings.
Prepare a notepad to write down your password.
-->
⚠️ Attention: If the button Show Inactive means the current user doesn't have permission to view the password. Try logging in as an administrator or using alternative methods.
Method 2: Extracting the password via the command line (CMD)
For experienced users it is more convenient to use command lineThis method allows you to get the password for any saved network, even if you're not currently connected to it:
- Launch
Command lineas administrator (via menu)Win + X). - Enter the command to view all saved networks:
netsh wlan show profiles - Find the required network in the list and copy its name (case is important!).
- Run the command to extract the password (replace
NETWORK_NAMEto the real name):netsh wlan show profile name="NETWORK_NAME" key=clear - In the section
Security parametersfind the lineKey content- this is the password.
Example of command output:
Profile name: HomeWiFi
...
Security parameters
Authentication type: WPA2-Personal
Encryption type: CCMP
Key contents: 12345678QwErTy
Method 3: Export all Wi-Fi passwords using PowerShell
For bulk extraction of passwords (for example, for backup) it is convenient to use PowerShellThe following script exports all saved networks with passwords to a text file:
- Launch
PowerShellon behalf of the administrator. - Paste and execute the command:
netsh wlan export profile folder="C:\WiFiPasswords\" key=clearThis will create a folder
WiFiPasswordson diskC:with XML files for each network. - Open any file (eg.
HomeWiFi.xml) in notepad and find the tag<keyMaterial>- there will be a password inside it.
The advantage of this method is that you get a backup of all your networks, which can be transferred to another computer or saved in the cloud. The disadvantage is that the files are stored in clear text, so they need to be password-protected (for example, by compressing them in an encrypted ZIP file).
| Method | Admin rights required | Mass export | Complexity |
|---|---|---|---|
| Windows Settings | Yes | No | ⭐ |
| Command Prompt (CMD) | Yes | No (on one network) | ⭐⭐ |
| PowerShell | Yes | Yes | ⭐⭐⭐ |
| Third-party utilities | Sometimes | Yes | ⭐⭐ |
Method 4: Using third-party utilities (for advanced users)
If Windows' built-in tools seem inconvenient, you can use specialized programs. Popular utilities include:
- 🔓 WirelessKeyView (from NirSoft): A free portable utility that displays all saved Wi-Fi passwords without installation. Supports CSV export.
- 🛡️ WiFi Password Revealer: simple interface with the ability to copy passwords to the clipboard.
- 📊 Magical Jelly Bean WiFi Password Revealer: additionally displays signal strength and encryption type.
Warning: Download utilities only from official websites of developersMany "cracked" versions of password extraction programs contain malware. Before using, check the files through VirusTotal.
How to check a utility for viruses?
1. Download the file from the official website (for example, https://www.nirsoft.net).
2. Go to https://www.virustotal.com and upload the downloaded file.
3. Wait for the analysis (may take 1-2 minutes).
4. If more than 2-3 antivirus programs show threats, do not use the program.
⚠️ Attention: Some antivirus programs (for example, Avast or Kaspersky) can block utilities like WirelessKeyView, considering them "potentially dangerous." This is a false positive—add the program to your antivirus exclusions before launching.
Method 5: Extracting passwords without administrator rights (limited capabilities)
If you don't have administrator rights, your options are severely limited. However, in some cases, you can try:
- 🔄 Recovery via Microsoft account: if the computer is linked to an account MicrosoftSome network settings are synced to the cloud. Check your connection history on the website.
account.microsoft.com(section "Devices"). - 📱 View on another device: If a smartphone or tablet is connected to the same network, retrieve the password through the device settings (for example, on Android This can be done through
Settings → Wi-Fi → Saved Networks). - 🖥️ Booting from LiveCD: create a bootable USB flash drive with Linux (For example, Ubuntu) and gain access to Windows files bypassing restrictions. Passwords will still be encrypted, but you can try to decode them using
chntpw.
Important: No administrator rights required It is not possible to extract passwords directly from the registry or Windows configuration filesAll "workaround" methods require either access to another device on the network or physical access to the computer to boot from external media.
Security: How to protect your passwords from being extracted
If you're concerned that someone might extract passwords from your computer, take the following steps:
- 🔐 Disable automatic connection to public networks: in the Wi-Fi settings, uncheck the box
Connect automaticallyfor untrusted networks. - 🛡️ Use BitLocker: Disk encryption will prevent passwords from being extracted when booting from a LiveCD.
- 👤 Limit user rights: Create separate non-administrator accounts for everyday work.
- 🔄 Change your passwords regularly on the router, especially if third-party devices were connected to the network.
Remember: even if an attacker has obtained your network password, they will only be able to connect to it within the router's range. For increased security, configure the router MAC address filtering and turn off the function WPS, which is easy to hack.
FAQ: Frequently Asked Questions About Wi-Fi Passwords in Windows
Is it possible to find out the password for a Wi-Fi network that the computer has never connected to?
No. Windows only stores passwords for networks you've connected to at least once. If the network isn't listed netsh wlan show profiles, it's impossible to recover your password through the system. Try:
- View the password on another device that has connected to this network.
- Reset the router settings (using the button)
Reset) and set a new password. - Contact your network administrator (for example, in an office or public place).
Why does the command prompt show an empty value in the Key Content field?
This happens in three cases:
- The network was connected without a password (for example, through
WPSor an open access point). - The password was changed on the router. after last time the computer was connected.
- The account under which the command prompt is running does not have permission to view the password.
Solution: Try running CMD as administrator or check if the network is saved in profiles (netsh wlan show profiles).
How to transfer Wi-Fi passwords to another computer?
There are two reliable ways:
Method 1: Via profile export (See the PowerShell section.) Copy the folder with the XML files to the new computer and import them using the command:
netsh wlan add profile filename="C:\WiFiPasswords\HomeWiFi.xml" user=all
Method 2: Manual entryView the password on your old computer (using any of the methods described) and enter it manually on your new device.
Is it possible to extract Wi-Fi passwords from a Windows backup?
Yes, but it's a complicated process. Passwords are stored in registry files (SOFTWARE And SYSTEM) and in the folder ProgramData\Microsoft\WlansvcTo extract them:
- Restore files from a backup to your working computer.
- Use the utility Regedit to load the registry hive (
File → Load Bush). - Use a script to decode passwords (eg.
WLAN-Password-Revealeron GitHub).
For inexperienced users it is easier to use third-party utilitiesthat automate the process (for example, Elcomsoft Wireless Security Auditor).
Do these methods work on Windows 7 or XP?
Partially. In Windows 7 you can use the command line (netsh wlan show profile), but the “Options” interface is different. For Windows XP:
- Passwords are stored in the registry at the following path:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WZCSVC\Parameters\Interfaces. - They can be extracted using a utility WirelessKeyView (supports older versions of Windows).
- Team
netshXP does not support the keykey=clear.
⚠️ Attention: Windows XP has not received security updates since 2014. Using this system for networking is not recommended.