It's quite common to need to find a saved password for a wireless network. For example, you might have bought a new router, had guests over, or simply forgotten the password you entered months ago. Fortunately, the operating system Windows automatically saves this data for quick reconnection, and retrieving it is easy.
Many users mistakenly believe that the password is hidden in a secret file to which access is prohibited. In reality, the information is encrypted and stored deep in system registries or special credential storage. In this article, we will examine all possible ways to find it. network security key (Network Security Key) using standard system tools without installing third-party software.
Before you begin searching, it's important to understand your access level. You'll need permissions to perform most of the actions described below. administratorIf you're working on a corporate computer, your system administrator may have blocked access to these features for security reasons.
Finding a password through the Windows graphical interface
The easiest and safest way to find the saved key is to use the standard network properties window. This method works in all current versions. Windows 10 And Windows 11It's ideal for those who are afraid of making mistakes in console commands.
Open "Settings" and go to the "Network & Internet" section. There, find "Advanced network settings" or "Network and Sharing Center." In the window that opens, select your active wireless connection and click "Wireless network properties."
⚠️ Attention: The Keys tab may not be available if you are not a device administrator or if your organization's security policy prevents you from viewing saved passwords.
In the properties window that opens, go to the "Connection" tab. There you'll see the "Wireless Network Properties" button. Click it, and in the new dialog box, switch to the "Security" tab. This is where the "Network Security Key" field is located.
By default, symbols are hidden behind asterisks. To see them, you need to check the "Show input characters" box. After that ASCII code The password will become visible and you will be able to copy or write it down.
Using the Command Prompt (CMD)
For more advanced users who prioritize speed, the command line is ideal. This method not only allows you to view the current network password but also list all profiles ever saved on your computer.
To begin, launch the Command Prompt as administrator. You can do this by searching in the Start menu, right-clicking "Command Prompt," and selecting the appropriate option. Enter the following command to display all profiles:
netsh wlan show profiles
The system will display a list of all networks to which the computer has connected. Find the required name (SSID) in the list and enter the following command, replacing NETWORK_NAME to the real name of your router:
netsh wlan show profile name="NETWORK_NAME" key=clear
After running the command, the system will generate a detailed profile report. We're interested in the "Security settings" section. The "Key Content" line will display your password in clear text.
Searching via PowerShell
An alternative to the classic command line is a more powerful tool - PowerShellIt offers flexible scripting capabilities, but for our purposes, a single, simple line of code will do the trick, immediately producing the desired result.
Open PowerShell as administrator. Unlike CMD, this one has a more modern interface, but the principles are similar. Enter a command similar to the previous one, but in netsh syntax, which is also supported here:
netsh wlan show profile name="Network_Name" key=clear
The result will be identical to the output in CMD. Look for the "Key Contents" field. The advantage of PowerShell is that you can copy the entire output to the clipboard by simply selecting the text, which is convenient for saving information.
If you don't remember the exact network name, first run the command netsh wlan show profilesto see the full list. This will help avoid errors when entering the profile name in the second command.
View saved credentials
Windows stores passwords not only in network profiles but also in a special credential store called Credential Manager. This is a system component that remembers logins and passwords for various services, including Wi-Fi.
To get there, open Control Panel and find the Credential Manager section (or type control keymgr.dll (in the "Run" line). You are interested in the "Windows Credentials" section.
In the list, find the entry that corresponds to your wireless network. It usually starts with the prefix Microsoft_WiFi or contains the SSID name. Click the arrow to expand the details and select "Show."
| Search method | Complexity | Admin rights required | Shows old networks |
|---|---|---|---|
| Graphical interface | Low | No (for the current one) | No |
| Command Prompt (CMD) | Average | Yes | Yes |
| PowerShell | Average | Yes | Yes |
| Credential Manager | High | Yes | Yes |
Working with the Windows Registry
For experts in the field IT Viewing data through the registry might be interesting. Configuration files for profiles are stored there, but the passwords are encrypted and cannot be read without specialized decryption utilities.
The path to the registry branch where profiles are stored looks like this: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles. However, direct access to security keys through the standard registry editor (regedit) is difficult due to encryption.
⚠️ Attention: Editing the registry without proper knowledge can lead to system instability. Manually changing values in registry keys related to network profiles is not recommended.
Therefore, for the average user, the registry is of more theoretical interest in the context of password searches. It's better to use the command line, which queries the same data but automatically decrypts it for display.
If you decide to explore the registry, be sure to create a system restore point before making any changes. This is a standard precaution when working with system settings.
Is it possible to recover the password if the system was reinstalled?
Unfortunately, no. When you perform a clean installation of Windows, all locally stored profiles and passwords are deleted. They can only be restored if you backed up your registry beforehand or used Microsoft account sync (and only if this feature was enabled).
Sync via Microsoft account
Modern versions of Windows have a feature that allows you to sync settings between devices. If you sign in with the same account, Microsoft On different computers, Wi-Fi passwords can be stored in the cloud.
To check this, sign in to your account settings on any device where you've previously connected to the network. If syncing was enabled, the password may automatically be transferred to the new computer when you try to connect.
- 🔹 Open Settings → Accounts → Sync your settings.
- 🔹 Make sure the "Remember passwords" switch is turned on.
- 🔹 Check the list of known networks in the Wi-Fi section.
This method isn't always reliable and depends on the OS version and privacy settings. However, it's the only way to retrieve the password from another device if physical access to the router or the original computer is impossible.
What to do if the password is not displayed
Sometimes, none of the methods work. The key field remains blank or hidden, and the command prompt returns an "Element not found" error. This may be due to a corrupted network profile or group policy restrictions.
In this case, you can try deleting the network profile and reconnecting. To do this, enter the following in the command line: netsh wlan delete profile name="NETWORK_NAME"After this, the system will forget the network, and the next time you connect, you'll have to re-enter the password (if you wrote it down somewhere or can find it on a sticker on the router).
It's also worth checking whether you're using a corporate computer. On domain networks, administrators often restrict viewing security keys to protect the corporate perimeter. In this case, legally bypassing this restriction won't be possible.
☑️ Check before resetting network settings
Where is the password file physically located in Windows?
Physically, profiles are stored in a hidden system folder. C:\ProgramData\Microsoft\Wlansvc\Profiles\ProfilesHowever, the files there have the .xml extension, and the security key is encrypted using the DPAPI algorithm. It's impossible to read them without administrator rights and the context of the current user session.
Is it safe to use third-party password recovery programs?
Using programs like WirelessKeyView or WiFi Password Decoder carries risks. Antivirus programs often flag them as potentially unwanted programs (PUPs) because they use the same methods as stealer viruses. It's better to use built-in Windows tools.
Is it possible to find out the Wi-Fi password from the lock screen?
No. To access network properties, the command prompt, or the registry, you must log in to the system. If the computer is locked, none of the described methods will work without entering the user account password.