It's quite common to need to connect a new device to an existing wireless network but have lost or forgotten the password. Operating system Windows 10 Stores access keys to previously connected networks in a special secure vault. This ensures that each time a user turns on their computer or laptop, they can automatically connect to the internet without having to re-enter their credentials.
Fortunately, if you have physical access to a device already connected to Wi-Fi, recovering a forgotten password is easy. There are several proven methods, ranging from simply viewing the network properties in the graphical interface to using the command line for more advanced users. Each method has its own advantages and is suitable for different use cases.
In this article, we'll cover all available options for retrieving saved security keys in detail. You'll learn how to use standard system tools, as well as how to access hidden data using console commands. This knowledge will help you quickly restore network access to a guest laptop, tablet, or smartphone.
View your password through Network and Sharing Settings
The easiest and most secure way to find the saved key is to use the operating system's graphical interface. This method doesn't require complex commands and is accessible to anyone who can open the settings menu. However, keep in mind that you'll need administrator rights to view the password for the currently active network.
First, you need to go to the Network and Sharing Center. Right-click the connection icon in the system tray (usually the Wi-Fi or monitor icon in the lower right corner) and select "Open Network and Internet Settings." In the window that opens, find the "Network and Sharing Center" link or enter the command control /name Microsoft.NetworkAndSharingCenter in the Start menu search bar.
In the Control Center window, you'll see an active connection. Click the link with the name of your wireless network (it's displayed in blue next to "Connections"). A status window will open, where you should click "Wireless Network Properties." Go to the "Security" tab and check the box next to "Show characters as you type." The hidden key will become visible in the text field.
- 🔑 This method only works for the network the computer is currently connected to.
- 🛡️ Administrator rights are required to view the security tab.
- 💻 Compatible with all versions of Windows 10, regardless of build.
⚠️ Note: If the Security tab is missing or the buttons are grayed out, this may mean that the user account has limited rights or the organization's group policies are blocking viewing of network settings.
Using the command line to get the key
For those who prefer speed and versatility, the ideal solution would be to use a console. cmdThis method allows you to not only view the password for the current network but also retrieve the keys for all networks the computer has previously connected to. This is especially useful if the desired network is currently inactive, but the profile is saved in the system.
To launch the console, press the key combination Win + R, enter cmd and press Enter. For the command to run successfully, it's recommended to run the command prompt as administrator. While this isn't always strictly necessary for viewing profiles, it's critical for obtaining the password itself. First, you need to know the exact name of the network profile.
netsh wlan show profiles
Find the name of the desired network in the list. Then use the command to display it, adding the key key=clearThis will force the system to display the contents of the security field in clear text. The command syntax is as follows:
netsh wlan show profile name="Network_Name" key=clear
In the command output, find the line "Key Content." The value next to it is the password you're looking for. This method works reliably and isn't affected by graphical interface glitches.
- 📝 Allows you to see passwords for all previously connected networks.
- ⚡ Works faster than searching through the graphical menu.
- 🖥️ Indispensable if the Windows interface is unresponsive.
☑️ Check before entering a command
Extracting data via PowerShell
An alternative to the classic command line is a more powerful tool - PowerShellIn modern Windows 10 builds, it's gradually replacing cmd, providing more flexible options for working with system objects. The difference may not be noticeable to regular users, but PowerShell handles XML or JSON output better.
You can launch PowerShell by searching in the Start menu. The command to get the password is similar to the one used in cmd, since netsh is a system utility, not part of the shell. However, PowerShell allows you to create scripts to automatically collect all passwords into a text file, which is convenient for system administrators.
If the standard command doesn't produce a result, you can try using the NetSecurity module's cmdlets, although the basic syntax is sufficient for simple Wi-Fi tasks. The main advantage is the ability to copy the output directly to the clipboard using pipes.
netsh wlan show profile name="HomeWiFi" key=clear | Select-String"Key Contents"
This approach filters out unnecessary information and leaves only the password string. This saves time when searching for the required string in large volumes of technical text.
⚠️ Caution: Antivirus programs or intrusion detection systems (IDS) may detect mass password requests as suspicious activity. Use these tools only on trusted devices.
Viewing passwords through the Windows registry
Systemic registry — This is a low-level database that stores all operating system settings, including wireless network profiles. This method is considered advanced and requires caution, as incorrectly modifying registry settings can lead to Windows instability.
Passwords are stored in the registry in encrypted form, so simply copying the key value won't yield readable text. However, you can find network SSIDs and other technical information here. The path to the profiles looks like this: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles.
Decrypting passwords directly from the registry would require complex access rights manipulation and third-party utilities, so this method is more often used to remove problematic profiles that interfere with connections rather than to view keys. If your goal is to actually find the password, it's better to use the methods described above.
- 🗄️ Stores a complete history of network connections.
- ⚠️ Passwords are stored in encrypted binary format.
- 🔧 Requires extreme caution when editing.
Editing the registry is advisable if you want to completely clear the list of networks so that the system stops attempting to connect to them automatically. To do this, you can simply delete the profile branch.
Third-party utilities for access recovery
If built-in Windows tools don't work for some reason or the interface is damaged, specialized programs can help. The most popular and time-tested utility is WirelessKeyView from NirSoft. It requires no installation and works immediately after launch.
The program scans the WLAN AutoConfig database and displays a list of all networks, encryption keys (WEP/WPA), profile names, and other parameters. The interface is simple: a table with columns where you can easily find the desired value. There is also a utility WiFi Password Decoder, which works on a similar principle.
Using third-party software carries certain risks. Such programs should only be downloaded from the developers' official websites, as there are many counterfeit programs online that contain viruses. Furthermore, antivirus software may flag such utilities, classifying them as HackTool, as they are designed to extract sensitive data.
Is WirelessKeyView safe to use?
The utility is safe if downloaded from the official website nirsoft.net. Antivirus programs may flag it as a threat due to its functionality, but it does not contain any malicious code.
Comparison of methods and characteristics table
Each of the methods discussed has its advantages depending on the situation. The graphical interface is convenient for one-time actions, the command line is for quick access, and third-party utilities are suitable for mass recovery or working with a damaged system.
Below is a comparison table to help you choose the best method for your situation. Please note the access rights requirements and implementation complexity.
| Method | Complexity | Admin rights required | Access to network history |
|---|---|---|---|
| Network parameters | Low | Yes | No (current only) |
| Command Prompt (cmd) | Average | Yes | Yes |
| PowerShell | Average | Yes | Yes |
| Third-party software | Low | Yes | Yes |
Choose the method that feels most intuitive to you. For most users, the default Windows settings will be sufficient. However, if you frequently configure networks, mastering the command line will be a useful skill.
Frequently Asked Questions (FAQ)
Is it possible to find out the Wi-Fi password if the computer is not currently connected to the network?
Yes, it is possible. The computer stores profiles of all the networks it has ever connected to. Using the command line and the command netsh wlan show profile name="Name" key=clear, you can retrieve the password even if there is no connection established right now.
Why does the command prompt say "Access Denied"?
This means the console is running as a standard user, not an administrator. Close the cmd window, right-click "Command Prompt" in the Start menu, and select "Run as administrator."
Where can I find my password if I reinstalled Windows 10?
After a clean Windows installation, all saved profiles and passwords are deleted. In this case, it's impossible to find the password through the system. The only option is to look it up on the router case (if it hasn't been changed) or reset the router to factory settings and set a new one.
Is it safe to share passwords via instant messengers?
It's not recommended to share Wi-Fi passwords in plaintext via regular messaging apps, as they can be intercepted. It's better to use the guest network feature on your router or transmit data over secure channels.