Many users are familiar with the situation of needing to connect a new device to a wireless network, but the password has been forgotten or lost. Fortunately, the operating system Windows 10 Stores data about previously used connections in a special secure vault. This makes it easy to restore access if you already have at least one device successfully connected to the router.
There are several proven methods for extracting this information, from simple graphical interfaces to the command line. We'll cover the most up-to-date methods that work on most operating system builds, allowing you to quickly resolve the issue without reinstalling drivers or resetting your router.
Before starting any manipulations, you should make sure that your computer has administrative rightsWithout superuser rights, access to system password storage will be blocked for security purposes. It's also important to understand that these methods only work for networks to which the PC has previously connected or is currently connected.
Viewing the password through the network graphical interface
The simplest and safest method, which doesn't require complex commands, is accessible through the standard network management menu. This method is ideal for users who prefer a visual interface and are wary of accidentally changing system settings. You'll need to open the classic network status window, which is hidden deep within the settings menu.
First you need to go to Control Panel → Network and Internet → Network and Sharing CenterHere you will see an active connection, the name of which corresponds to yours. SSID (network name). Click on this blue name to open the wireless connection status window.
⚠️ Note: In newer versions of Windows 10 (after major updates in 2021-2022), the path to the classic Control Panel may be hidden. If the standard path doesn't work, use the system search and search for "Network Status."
In the window that opens, click the button Wireless network propertiesA dialog box with several tabs will appear. Click the tab SecurityThis is where the key encryption parameters and the access key itself are located. By default, the "Network Security Key" field is hidden by asterisks.
To see the symbols, check the box next to the inscription Show entered charactersThe system may prompt you to confirm administrator rights via a UAC pop-up window. After confirmation, you will see your password in plain text. This is the most secure method for WPA2-Personal And WPA3 networks.
Using Command Prompt (CMD) to recover
For more advanced users or in cases where the graphical interface is not working correctly, the command line is the ideal solution. netsh (Network Shell) allows you to manage network configurations directly through the console. This method is great because it's universal and works even on limited versions of Windows.
Launch Command Prompt as administrator. To do this, right-click the Start button and select Command Prompt from the menu. Enter the following command to list all saved Wi-Fi profiles on your computer:
netsh wlan show profiles
Find your network name in the list. If the name contains spaces or special characters, be sure to enclose it in quotation marks. Next, use the command to display detailed profile information, including the security key. The command syntax is as follows:
netsh wlan show profile name="Your_Network_Name" key=clear
In the command output, find the section Security parameters (Security settings). In the line Key content (Key Content) will display the password you're looking for. This method is especially useful if you need to quickly copy a password to the clipboard or if the interface freezes.
What should I do if the network name contains special characters?
If the network name contains spaces, quotation marks, or punctuation, be sure to enclose the name in double quotation marks in the command line. For example: name="My Home Wi-Fi!". Without quotation marks, the command will return a syntax error.
Retrieving data via PowerShell
A modern alternative to the classic CMD is a shell PowerShellIt offers more flexible capabilities for processing text and network requests. While this may seem excessive for a simple password viewer, PowerShell often performs more reliably in corporate environments or on systems with limited access to the CMD.
Open PowerShell with administrator privileges. The command to list profiles is similar to the one used in CMD, as the underlying mechanism is the same. However, we can use a more powerful syntax to filter the output. Enter the following:
netsh wlan show profile name="NetworkName" key=clear
The difference is that PowerShell allows you to easily redirect output to a file or process it with a script if you need to save passwords for multiple networks at once. This is especially useful for system administrators setting up workstations.
It's important to note that PowerShell commands are less case-sensitive than Linux commands, but the syntax netsh remains unchanged. Make sure you enter the network name exactly as it is stored in the system, taking into account the case of letters, if required for a specific profile.
View passwords for all saved networks at once
Often, you need to find the password for not just one, but several networks to which your computer has previously connected. Manually trying each one through the graphical interface is time-consuming. In this case, batch output can be helpful. The command line allows you to list all profiles and their security keys in a single report.
Use the following command to list all profiles and then drill down to the details of each one. This will create a long list in the terminal window:
for /f "skip=9 tokens=1,2 delims=:" %i in ('netsh wlan show profiles') do @echo %j | findstr -i -v echo | netsh wlan show profiles %j key=clear
The output will be a text stream with the corresponding security key for each SSID. You can scroll up the window to find the desired network. This is the fastest way to audit all saved connections.
| Parameter | Description | Where to find |
|---|---|---|
| Profile name | Wi-Fi network SSID | At the beginning of the data block |
| Security type | Encryption protocol (WPA2, WPA3) | Security Settings section |
| Security key | The network password itself | The "Key Content" line |
| Connection mode | Automatic or manual | Connection Settings section |
Please note that when outputting a large amount of text, some information may go beyond the console buffer's visibility. In this case, it is recommended to redirect the output to a text file by adding the following statement at the end of the command: > c:\wifi_passwords.txt.
Specifics of working with different encryption protocols
Modern routers use various security standards, such as WEP, WPA, WPA2 and the newest WPA3Windows 10 correctly displays passwords for all of these standards, but there are some nuances. For example, for corporate networks (WPA2-Enterprise), which use Radius server authentication, a simple password may not be explicitly displayed because certificates are used.
On personal networks (Home/Personal), the password is stored as a character string. If you see strange characters or encoding in the key field, it's possible there was a system encoding error when saving the profile, although this is extremely rare in Windows 10 thanks to support UTF-8.
⚠️ Note: If your network uses MAC address filtering, knowing the password does not guarantee connection. Make sure your device's MAC address is allowed in your router settings.
It's also worth keeping password length in mind. Standards allow keys up to 63 characters long. When copying the password from the command line, make sure you don't include any extra spaces at the beginning or end of the line, as Wi-Fi is case-sensitive and space-sensitive.
☑️ Check before connecting a new device
Restoring access through router settings
If none of the software methods work (for example, the system is damaged or administrator rights are lost), physical access to the router remains. You can connect to the device directly via a LAN cable or via Wi-Fi (if it's still working on another device) and access the web interface.
The entry address is usually indicated on a sticker on the bottom of the case (often 192.168.0.1 or 192.168.1.1). After entering the administrator login and password (often admin/admin), go to the section Wireless or Wi-Fi SettingsThere the password will be displayed in clear text or you can change it to a new one.
This method also allows you to check who else is connected to your network and, if necessary, block unknown devices. This is an important aspect. cybersecurity home network that shouldn't be ignored.
Please note that resetting your router to factory settings (using the Reset button) will erase all settings, including your network name and ISP password. Use this option only as a last resort and if you know the necessary information to reconfigure your internet connection.
Frequently Asked Questions (FAQ)
Is it possible to find out a Wi-Fi password if the computer has never connected to this network?
No, Windows can't hack networks. It only stores passwords that have been successfully entered and saved.