It's common to need to connect a new device to a wireless network but have forgotten the password. Fortunately, the operating system Windows 10 has a built-in mechanism for saving security keys for all networks you've ever connected to. This means that if your computer or laptop has previously connected to the desired Wi-Fi network, you can retrieve the saved code in minutes without having to reset the router.
There are several methods for restoring access, from simple graphical interfaces to more advanced console commands. The method you choose depends on whether you're currently connected to the network or trying to retrieve data from a previous connection, as well as your level of technical expertise. In this article, we'll cover all the current options so you can quickly resolve your access issue.
Password recovery via network settings
The most obvious and accessible method for any user is to use the standard operating system interface. If your device is currently actively using a wireless connection, Windows Allows you to view the security key directly in the network properties window. This method doesn't require installing additional software or knowledge of complex commands.
First, you need to open the Network and Sharing Center. You can do this by right-clicking on the icon. Wi-Fi in the system tray (lower-right corner of the screen) and select "Open Network and Internet Settings." Next, in the window that opens, find the "Network and Sharing Center" link, or go directly to managing known networks if you're using the updated settings interface.
After accessing the properties of a specific wireless connection, a dialog box will open containing general information. Click the "Wireless Network Properties" button. In the new window, go to the "Security" tab. This section contains the "Network Security Key" field, where the symbols are hidden by default with asterisks.
To view the hidden code, simply check the box next to "Show entered characters." The system may ask you to confirm administrator rights—this is a standard data protection procedure. Once confirmed, the asterisks will turn into readable text that can be copied or written down.
Using the Command Prompt for Advanced Users
For those who prefer speed and precision, or in cases where the graphical interface does not work correctly, using the command line is the ideal solution. CMDThis method not only allows you to view the password for the current network, but also displays a list of all saved profiles, which is especially useful when working with multiple connections.
The first step is to launch the Command Prompt as administrator. Press the key combination Win + X and select "Windows PowerShell (Admin)" or "Command Prompt (Admin)". In the black window that opens, enter the command to display all saved profiles:
netsh wlan show profiles
In response, the system will display a list of all networks ever connected to this PC. Find the required name (SSID) in the list. Then, use the following command, replacing Network_name to the exact name of your profile from the list:
netsh wlan show profile name="Network_Name" key=clear
What to do if the command fails?
Make sure you enter the network name in double quotes if it contains spaces. Also, make sure the WLAN AutoConfig service is running on the system.
After entering the command, the system will generate a detailed report on the selected profile. Scroll down to the "Security Settings" section. There, in the "Key Contents" line, the password you're looking for will be displayed in cleartext. This method works even if the network is not currently active, as long as the profile is saved to the computer's memory.
⚠️ Note: When entering the network name in the command line, the case of letters does not matter, but the presence of spaces and special characters requires the use of quotation marks, otherwise the command will be executed with an error.
Finding the security key in the router's web interface
If none of your computers remember the password, or you want to know it for a device that has never connected to the network before, the most reliable source of information is the router itself. Accessing the settings router allows you not only to see your current password, but also to change it to a more complex or easier to remember one.
To access the control panel, you need to know the gateway IP address. This is usually 192.168.0.1 or 192.168.1.1Enter this address into the address bar of any browser. If the address was previously changed and you don't remember it, you can find it through the command line by entering the command ipconfig and find the line "Default gateway".
The system will ask for your login and password to access the admin panel. If you haven't changed them, they are often found on a sticker on the bottom of the device (standard pairs are admin/admin or admin/password). After successful authorization, you should find the section related to wireless settings. Depending on the device model (TP-Link, ASUS, D-Link, Keenetic), this section may be called "Wireless", "Wi-Fi", "Wireless Network" or "WLAN".
Within the Wireless section, look for the "Security" subsection. This is where the "Wireless Password / Pre-Shared Key" field is located. This is where you'll see the current encryption key. If you decide to change it, be sure to save your changes by clicking "Apply" or "Save."
Specific settings for different router models
Router interfaces from different manufacturers vary significantly, which can be confusing for inexperienced users. Understanding the menu layout helps you navigate the settings more quickly, regardless of the device brand.
Below is a table to help you find the Wi-Fi security settings on popular hardware models:
| Manufacturer | Menu section | Subsection | Field name |
|---|---|---|---|
| TP-Link | Wireless | Wireless Security | Wireless Password |
| ASUS | Wireless network | General | Authentication Method / WPA Key |
| D-Link | Wi-Fi | Security settings | PSK encryption key |
| Keenetic | My Networks and Wi-Fi | Home network | Wi-Fi network password |
| Tenda | Wireless Settings | Wireless Security | WPA/WPA2-PSK Password |
It's important to keep in mind that router firmware is regularly updated, and the menu's appearance may change. If you don't find an exact match, look for sections containing the words "Security," "Wireless," or lock and antenna icons.
⚠️ Note: Interfaces and menu item names may differ depending on your router's firmware version. If the exact names differ, refer to the sections related to wireless communications.
Viewing a password using PowerShell
An alternative to the classic command line is a more powerful tool - PowerShellIt's built into all modern versions of Windows and provides similar functionality, but with more flexible scripting capabilities, should automation be needed in the future.
Launch PowerShell as administrator by right-clicking the Start button and selecting the appropriate option. The commands here work almost identically to CMD. To list your profiles, enter:
netsh wlan show profiles
Then, to display the key, use the same construction:
netsh wlan show profile name="NAME" key=clear
PowerShell has the advantage of better Unicode support, which is critical if your network name or password contains Cyrillic characters or rare symbols that may be displayed incorrectly (as "Gibberish") in a regular console.
☑️ Check before resetting your router
Third-party Wi-Fi management utilities
There are many specialized programs that make working with wireless networks easier. Such programs as WirelessKeyView from NirSoft or WiFi Password Decryptor, are able to instantly extract all saved keys from the Windows registry and display them in a convenient list.
Using third-party software is justified when you need to quickly extract passwords from all devices or when standard Windows tools are blocked for some reason. However, it's important to keep security in mind: such programs should only be downloaded from the developers' official websites to avoid the introduction of malicious code.
Most of these programs are portable and require no installation. Once launched, they automatically scan the WLAN database and display the results in a table with fields such as SSID, encryption type, and security key. This is especially convenient for system administrators managing multiple computers.
⚠️ Warning: Antivirus programs may detect password recovery tools as potentially unwanted software (HackTools) because they use methods similar to those used by hackers. Be prepared to add the program to your exceptions if you are certain of its source.
Frequently Asked Questions (FAQ)
Is it possible to find out a Wi-Fi password if the computer has never connected to this network?
No, the Windows operating system only stores the keys used for a successful connection. If the device doesn't know the password, it can only be found through the router settings (if there's cable or Wi-Fi access from another device) or by asking the network owner.
What should I do if I forgot my router admin panel password?
If the default login/password pair (often admin/admin) isn't working and has been changed, and you don't remember it, the only solution is to reset the router to factory settings. To do this, hold down the button Reset on the device body for 10-15 seconds. After this, the router will be reconfigured as it was when it was first turned on.
Is it safe to save a password in Windows?
Yes, Windows stores passwords encrypted in the system registry. Only users with administrator rights can access them. However, if attackers gain physical access to your computer, they can extract this data using special tools, so it's important to protect your login account with a strong password.
Why does the netsh command give a "Network not found" error?
This means there is an error in the profile name you entered. Check the exact network name with the command netsh wlan show profilesThe name must match character by character, including spaces and case (although case is usually unimportant, spaces and special characters are critical). Don't forget to use quotation marks if the name contains spaces.