Many users are familiar with the situation when they need to connect a new device to a wireless network, but the password has long been forgotten or written down on a piece of paper that has been lost. Windows 10 operating system Stores access keys to previously connected networks in encrypted form, allowing you to restore this data at any time without having to reset the router. This is especially useful when connecting a guest or setting up a new one. smartphone, but there is no computer with an active connection at hand.
There are several proven ways to extract this sensitive information, ranging from simply viewing the active connection properties to using advanced console commands. It's important to understand that you'll need privileges to perform most of the actions described below. administrator, since the system protects this data from unauthorized access by third-party programs and users.
In this material we will analyze all available methods, from the graphical interface to working with netshto ensure you can regain access to your network. Whether you're currently connected to the network or need to find the password for a profile you previously used, you'll find a solution in the following sections.
⚠️ Note: Retrieving passwords is only possible for networks to which your computer has previously connected or is currently connected. It is impossible to find the password for a network you've never connected to using these methods.
Viewing the password through the settings graphical interface
The easiest and safest way to find a forgotten key is to use the standard network properties windows in Control panelsThis method doesn't require complex commands and is suitable even for inexperienced users who are wary of accidentally changing system settings. However, it's important to note that this method only works if your device is currently connected to the target WiFi network.
First, you need to open the connection status window. Press the key combination Win + R, enter the command ncpa.cpl and press Enter. In the list of adapters that opens, find the icon Wireless network, right-click on it and select "Status." In the window that appears, click "Wireless Network Properties."
In the new dialog box, go to the "Security" tab. You'll see the "Network Security Key" field, where the characters are hidden behind asterisks. To make them visible, check the "Show entered characters" box. The system will immediately display your password in clear text., and you can copy or rewrite it.
- 🔹 Make sure you are within the network coverage area, otherwise the properties tab may not be available.
- 🔹 If the "Properties" button is inactive, check if the adapter is disabled in Device Manager.
- 🔹 You may need administrator rights on this computer to access the Security tab.
Using the command line to retrieve data
If the graphical interface is unavailable for some reason or you prefer to work with the console, Command Prompt (CMD) or PowerShell provide powerful tools for managing network profiles. The utility netsh allows you not only to view the list of saved networks, but also to display their passwords in clear text.
First, you need to run the console as an administrator. Right-click the Start button and select "Windows PowerShell (Administrator)" or search for "cmd," right-click, and select "Run as administrator." In the window that opens, enter the command to view all saved profiles:
netsh wlan show profiles
Find your network name in the list. Then use the command with the parameter key=clearto see the password. Replace "Network_Name" with the actual name of your WiFi:
netsh wlan show profile name="Network_Name" key=clear
In the command output, find the line "Key Content." This is where the password you're looking for will be located. This method is convenient because it allows you to quickly access data from any saved network, even if you're not currently connected to it.
☑️ Check before entering commands
Analyzing saved profiles via PowerShell
An alternative to the classic command line is a more modern tool PowerShell, which provides more flexible options for filtering and displaying information. PowerShell scripts can automatically extract passwords and save them to a text file, which is convenient when migrating settings to another computer.
To get a list of all profiles and their passwords in PowerShell, you can use the following construct. It will list all networks and their corresponding security keys in a convenient format:
(netsh wlan show profiles) | Select-String"\:(.+)$" | %{$name=$_.Matches.Groups[1].Value.Trim; $_} | %{(netsh wlan show profile name="$name" key=clear)} | Select-String"Key Content" -AllMatches | % {($_.Matches.Groups[1].Value).Trim}
This method may seem complicated for beginners due to the use of a pipeline and regular expressions, but it is the most effective for bulk data collection. Script goes through all profiles sequentially and extracts only the required line with the password.
⚠️ Warning: When working with PowerShell scripts, be careful about copying commands from untrusted sources, as they may contain malicious code aimed at stealing your data.
If you plan to use this method often, you can create your own .ps1 A file with a simplified command. This will save time in the future when you need to quickly restore network access on a new device or after reinstalling the operating system.
Working with the Windows Registry for Advanced Users
For those who prefer to dive deep into the system, information about wireless networks is stored in Windows registryHowever, unlike the previous methods, passwords are stored here in encrypted format rather than in plaintext, so they cannot be viewed directly. This section is more useful for understanding the data storage structure or for exporting profiles.
The path to the registry branch where WiFi profiles are stored looks like this:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles
Here you'll find a multitude of folders with unique identifiers (GUIDs). To find the network you need, you'll need to check the parameter ProfileName in each of them. This is a labor-intensive process, rarely used solely for viewing a password, but can be useful for removing "junk" or conflicting profiles that interfere with normal connection.
| Registry parameter | Description | Search value |
|---|---|---|
| ProfileName | WiFi network name | The name of your router |
| Description | Profile Description | Often coincides with the name |
| DateCreated | Date of creation | First connection time |
| Managed | Managed profile | 1 (OS controlled) or 0 |
Is it possible to recover a password from a registry backup?
Yes, if you have a full registry backup made before losing the password, you can restore the NetworkList branch, but this is a complex procedure that requires a reboot and is potentially dangerous to system stability.
Deleting and managing network profiles
Sometimes knowing the password doesn't help if the network profile is corrupted or contains incorrect security settings. In such cases, it's helpful to know how to delete the old profile and create a new one. This often resolves issues with constant connection drops or the inability to obtain an IP address.
Using the familiar command line, you can delete a network profile with the command:
netsh wlan delete profile name="Network_Name"
After running this command, Windows will "forget" the network and password. The next time you connect, the system will prompt you for the security key again. This is also an effective way to clear the list of networks your computer has connected to in the past, enhancing your privacy.
In the Windows 10 graphical interface, profile management is also available through the Settings menu. Go to Network & Internet → Wi-Fi → Manage known networksHere you can select any network and click the "Forget" button. This action is similar to deleting it through the console and requires re-entering the password to connect.
- 🔹 Delete public network profiles (cafes, airports) that you no longer use.
- 🔹 If the network is not removed, check if Group Policy is applied to it in the corporate environment.
- 🔹 After deleting a profile, it is recommended to restart your computer to reset network caches.
Third-party password recovery utilities
There are many third party programs available such as WirelessKeyView from NirSoft or WiFi Password Decoder, which automate the key extraction process. These utilities scan system storages and display the results in a convenient table.
The main advantage of such programs is their speed and the ability to export passwords to HTML, XML, or TXT files with one click. This is especially useful for system administrators who need to quickly collect data from multiple computers in an office. However, using third-party software always carries risks.
Antivirus programs often react to utilities like "HackTool" or "RiskTool" because their operating principles are similar to those of password-stealing malware. Therefore, before running these programs, you must add them to your antivirus exclusions or temporarily disable protection, which reduces the overall system security.
⚠️ Warning: Download password recovery utilities only from the developers' official websites. Versions from third-party resources may be modified and contain actual viruses or Trojans.
For one-time use on a home PC, it's much safer and more reliable to use the built-in Windows tools described in the first sections of this article. They don't require installing additional software and won't trigger false alarms from security software.
Frequently Asked Questions (FAQ)
Is it possible to find out the WiFi password if the computer is not currently connected to the network?
Yes, it's possible. Windows stores passwords for all previously connected networks. Use the command prompt and the command netsh wlan show profile name="Name" key=clearto see the password even without an active connection.
Why is the "Show entered characters" field inactive (gray)?
This means your current account doesn't have administrator privileges. You need to log in as an administrator or ask the computer owner for the password.
Where is the WiFi password physically stored in Windows 10?
Passwords are stored in a secure area of the registry and system configuration files in encrypted form. Access to them is only possible through special operating system APIs or utilities with the appropriate privileges.
Are password recovery programs safe to use?
Using trusted utilities from reputable developers (such as NirSoft) is relatively safe, but antivirus programs may flag them as dangerous. Built-in Windows tools (CMD, PowerShell) are completely safe and preferable.
What should I do if the netsh command returns an "Element not found" error?
You most likely entered the network name incorrectly. The name must match exactly, including spaces and capitalization. Use the command netsh wlan show profilesto copy the exact profile name.