Connecting a new device to the network, but losing or forgetting the password, is one of the most common problems in home IT diagnostics. Fortunately, the operating system Windows 10 Stores access keys to networks the laptop has previously successfully connected to. This allows you to quickly restore access without having to reset the router or perform complex hardware reconfiguration.
There are several proven methods for extracting saved data, ranging from the graphical interface to console commands. Each method has its advantages: the graphical interface is easy to understand for beginners, while the command line provides more granular control and the ability to export information for all networks at once. The choice of a specific method depends on your preferences and the current state of the system.
In this article, we'll cover all the current methods for restoring access, including working with the registry and third-party utilities. You'll learn not only how to find forgotten keys but also how to properly manage connection profiles in your operating system.
Viewing a password through the Windows graphical interface
The easiest and safest way to find a forgotten access key is to use the operating system's built-in tools. This method doesn't require complex commands and is ideal for users who rarely configure networks. To get started, you need to ensure your laptop is currently connected to the desired network or has at least previously connected to it.
Go to the Start menu and select "Settings," which looks like a gear. Next, follow this path: Network and Internet → StatusIn the window that opens, find the "Network and Sharing Center" link or use the classic method through the Control Panel by entering the command control panel in the search bar.
In the window that opens, find your active wireless connection and click on it. A status dialog box will open, where you should click the "Wireless Network Properties" button. Go to the "Security" tab.
⚠️ Attention: Viewing the password field may require administrator privileges. If you're on a corporate network, access to these settings may be restricted by your system administrator.
On the Security tab, you'll see the "Network Security Key" field, which is hidden by asterisks by default. Check the "Show entered characters" box. The system will instantly display the character combination you're searching for. This is the most direct path for the currently active network.
Using the Command Prompt to View Keys
For more advanced users or in cases where the graphical interface does not work correctly, using the command line is a great solution. CMDThis tool allows you to interact directly with the service. WLAN AutoConfig, which manages wireless connections. The method is universal and works even in safe mode with network support.
First, you need to run the command prompt as an administrator. Right-click the Start menu and select "Windows PowerShell (Administrator)" or search for "Command Prompt," right-click, and select "Run as administrator." Without administrator privileges, the command will not run.
The first step is to get a list of all saved profiles. Enter the following command and press Enter:
netsh wlan show profiles
Find the name of the desired network in the list. Then use the command to display detailed information about a specific profile by adding the key key=clear, which will force the key to be shown in clear text:
netsh wlan show profile name="Network_Name" key=clear
In the command output, find the "Security Settings" section. The "Key Contents" line will contain the password you're looking for. If the network name contains spaces, be sure to enclose it in quotation marks, as shown in the example above.
☑️ Command line steps
View passwords for all saved networks at once
If you need to restore access to multiple devices or are setting up an office, it's convenient to display information about all networks ever connected. The standard Windows interface only displays the password for the currently active network, but the command line allows you to bypass this limitation.
Using a modified command, you can get a list of all profiles with their security keys. This is especially useful if you've forgotten the network name or want to check the security of your saved connections. Please note that the output may be voluminous.
Run the following command in the console with administrator rights:
netsh wlan show profiles name="*" key=clear
The asterisk in quotation marks acts as a wildcard, instructing the system to process all saved profiles. The result will be a long list, with the encryption type and public security key for each network. For convenience, you can redirect the output to a text file.
netsh wlan show profiles name="*" key=clear > C:\wifi_passwords.txt
After executing this command the file wifi_passwords.txt will appear in the root of drive C, and it can be opened with any text editor, for example With a notepad, for easy reading and copying of data.
Why may some profiles not be displayed?
If a profile was created for all users, but you run the console as the current user without full privileges, or if the profile is corrupted, it may not appear in the list. Profiles may also be deleted by updating the system or clearing the network cache.
Comparison of access recovery methods
The choice of method depends on your goals and level of experience. A graphical interface is convenient for a one-time check of the current network, while the command line offers more flexibility. Below is a table comparing the key characteristics of the various approaches.
| Method | Necessary rights | Access to network history | Complexity |
|---|---|---|---|
| Windows settings | User | Current only | Low |
| Command Prompt (CMD) | Administrator | All saved | Average |
| PowerShell | Administrator | All saved | High |
| Third-party software | Administrator | All saved | Low |
Usage PowerShell is also possible, but requires knowledge of specific cmdlets such as Get-NetConnectionProfile, which may be overkill for a simple task. Third-party programs such as WirelessKeyView from NirSoft automate the process, but require downloading executable files, which carries potential security risks.
⚠️ Attention: Using third-party password extraction programs may be flagged as suspicious activity by antivirus software. Always verify files with digital signatures.
For most users, the optimal balance between security and functionality is to use the built-in utility. netshIt does not require any additional software and is included with any version of Windows by default.
Working with the registry and WLAN profile
All wireless network settings, including encryption keys, are stored in the Windows system registry. Directly editing the registry is powerful, but risky. The keys are stored in encrypted form in the path HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles, however, decoding them manually without special knowledge of cryptography is almost impossible.
A more useful aspect of working with profiles is clearing them. If the network has changed its security settings (for example, the encryption type has changed from WPA2 on WPA3), the old profile may conflict with the new one, preventing connection. In this case, it's best to delete the profile and create a new one.
You can delete a profile via the command line:
netsh wlan delete profile name="Network_Name"
Once deleted, the system will forget the network and password. The next time you try to connect, Windows will prompt you to enter the key again. This is an effective method for diagnosing connection issues when simple reconnection methods fail.
Common mistakes and how to solve them
When trying to find out the password, users often encounter the error "The requested operation can only be performed on a wireless network" or a message about insufficient rights. This is most often due to the service WLAN AutoConfig stopped or is not working properly.
You can check the service status through the Run menu (Win+R) by entering the command services.mscFind "WLAN AutoConfig Service" in the list, make sure the startup type is set to "Automatic" and the service is running. If it is stopped, start it manually.
There may also be encoding issues when outputting commands to the console, especially if the network name contains Cyrillic characters. In this case, enter chcp 65001 to switch the encoding to UTF-8, which will ensure the correct display of Russian letters.
⚠️ Attention: Command line interfaces and service names may vary slightly between different builds of Windows 10 and Windows 11. If the command doesn't work, check the exact service name in your language pack.
If none of the software methods work, the network profile may be corrupted at the file system level. In this case, the only solution is to completely reset the network settings via Settings → Network & Internet → Status → Network Reset.
Frequently Asked Questions (FAQ)
Is it possible to find out the Wi-Fi password if the laptop has never connected to this network?
No, this can't be done using standard Windows tools. The password is stored only on devices that have already been successfully authenticated. If a device hasn't been connected, it doesn't have the key. The only option is to obtain the password from the router owner or look for it on a sticker on the device.
Are password recovery programs safe to use?
Using proven snails from reputable developers (for example, NirSoft) is relatively safe, but antivirus programs often flag them as HackTool or RiskWare, as they are designed to extract sensitive data. Be careful when downloading unverified software from dubious sources.
What should I do if the netsh command returns an "Element not found" error?
This error means that a profile with the specified name was not found in the list of saved profiles. Please check the spelling of the network name, including spaces and capitalization. Use the command show profiles No name to see the exact list of available profiles.
Where is the password physically located on the router?
The factory password (if it hasn't been changed) is usually found on a sticker on the bottom or back of the router. Look for fields labeled "Wireless Password," "WPA Key," "PIN," or "Security Key." If the password was changed manually, you can only find it by accessing the router settings through a browser.