It's quite common to need to connect a new device to a wireless network, but the password is forgotten or written down in an inaccessible place. Fortunately, the operating system Windows Automatically saves security keys for all networks you've ever connected to. This makes it easy to restore access to your data using the system's built-in tools.
In this article, we'll cover all current methods for extracting this information in detail, from the graphical interface to advanced console-based methods. You won't need to install third-party software or have programming skills.
It is important to understandPlease note that you will need administrator rights to perform some actions. Without the appropriate rights, the system will not allow you to view saved security keys to protect your data.
Using the Windows graphical interface
The easiest and most accessible way to find the access key is to use the standard network properties windows. This method is ideal for users who don't want to mess with commands. It works reliably on all system versions, from Windows 7 to Windows 11.
First, you need to access the network connection management menu. Press the key combination Win + R, enter the command ncpa.cpl and press Enter. In the window that opens, find your active "Wireless Network" adapter.
Next, follow the instructions:
- 📡 Right-click on the Wi-Fi icon and select “Status”.
- 🔍 In the window that opens, click the "Wireless Network Properties" button.
- 🔑 Go to the Security tab.
- 👁️ Check the box next to "Show entered characters".
After these steps, the required combination of characters will appear in the “Network Security Key” field. This method only works for the network your computer is currently connected to. If you need to find out the password for another, previously used network, you will have to use other methods.
Viewing passwords via the CMD command line
The command line is a powerful system administrator tool that allows you to manage network profiles. It not only allows you to view the password for the current network but also list all profiles ever saved on this computer.
To launch the console, click Start, type cmd, then right-click "Command Prompt" and select "Run as administrator." First, let's list all profiles with the command:
netsh wlan show profiles
Find the name of the desired network in the list. To view the password, enter the following command, replacing "NetworkName" with the exact name of your profile:
netsh wlan show profile name="Network_Name" key=clear
In the command output, find the line "Key Content." This is where the password will be stored. Please note, that if you enter a network name with spaces, it must be enclosed in quotation marks, otherwise the system will return an error.
☑️ Check before entering commands
Using PowerShell to retrieve data
PowerShell is a more modern shell, replacing the classic CMD. It offers more flexible options for working with Windows network objects. Although the syntax may seem more complex, the results are often more structured.
Run PowerShell as administrator. To list all profiles, use the following command:
netsh wlan show profiles
To display the password for a specific network, enter:
netsh wlan show profile name="WiFi_Name" key=clear
If you need to dump all passwords at once into a text file, you can use a more complex construction, but for a one-time viewing, the standard output is sufficient. Advantage PowerShell is better at handling encodings and long lists, allowing you to scroll through your command history.
⚠️ Caution: When working with the command line, pay attention to syntax. A single letter error can cause the command to fail, although it's virtually impossible to damage the system with such actions.
Viewing saved profiles in the registry
All wireless network settings, including encryption keys, are stored in the Windows system registry. However, they can't be found there in plain text—they're encrypted. The registry is useful for understanding the data storage structure, but to extract the password, it's better to use commands that access this data.
The path to the registry branch where profiles are stored looks like this:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles
Within this branch are folders with GUID identifiers. To find the right one, you'll have to check the parameter ProfileName in each folder. It's a long and inconvenient way, so registry is seen more as a reference to where the data physically resides rather than as a practical tool for retrieving it.
If you still decide to look into the registry:
- 📂 Click
Win + Rand enterregedit. - 🔍 Follow the path above.
- 📝 Look for folders with the desired network name in the ProfileName parameter.
Why isn't the password immediately visible in the registry?
Registry data is stored in binary or encrypted form to protect it from being easily copied by malicious users. The operating system decrypts it on the fly only for authorized processes.
Comparison of password retrieval methods
The choice of method depends on your skills and the current situation. A graphical interface is convenient for beginners, a command line is for experts, and the registry is for in-depth diagnostics. Below is a table to help you decide.
| Method | Complexity | Speed | Access to history |
|---|---|---|---|
| Network properties | Low | High | Current only |
| Command line | Average | High | All profiles |
| PowerShell | Average | High | All profiles |
| Registry | High | Low | All profiles |
For most users, the best option remains to use network properties or a simple command netshThese methods do not require the installation of additional software and work out of the box.
Viewing the password through the router's web interface
If your computer isn't connected to Wi-Fi or you've changed devices, you can find the password in the router's settings. To do this, you'll need to know the gateway IP address (usually 192.168.0.1 or 192.168.1.1) and login details for the admin panel.
Connect to the router via cable or Wi-Fi, open a browser, and enter the gateway address. After logging in (the login and password are often found on a sticker on the bottom of the device), go to the "Settings" section. Wireless or Wireless modeThere, in the "Password" (Password/PSK) field, your key will be indicated.
Interfaces vary between manufacturers:
- 🌐 TP-Link: section Wireless -> Wireless Security.
- 🌐 Asus: section Wireless network -> General.
- 🌐 D-Link: Wi-Fi section -> Security settings.
⚠️ Note: Router interfaces are constantly being updated. Menu locations may vary depending on the firmware version. If you can't find the item you need, consult your router manufacturer's official documentation.
Frequently Asked Questions (FAQ)
Is it possible to find out a Wi-Fi password if the computer has never connected to this network?
No, this can't be done using standard Windows tools. The computer only stores the keys used to connect. Obtaining the password for someone else's network would require breaking the encryption, which is illegal.
Where are Wi-Fi passwords stored in Windows 10 and 11?
They are physically stored in system files and the registry, but in encrypted form. The user can view them in clear text only through special requests to the system API (as in the command line) or through the network properties graphical interface.
What should I do if the netsh command returns an "Access Denied" error?
This means you launched the Command Prompt without administrator privileges. Right-click the CMD shortcut and select "Run as administrator."
Is it safe to save passwords in Windows?
Yes, it's safe, as the keys are encrypted and linked to the user account. However, if your computer is infected with a stealer, attackers may try to extract this saved data.