It's common to need to connect a new device to a wireless network but have forgotten the access key. Fortunately, if at least one laptop is already connected to the router, recovering the password is easy. The Windows operating system stores information about previously used networks in a secure registry, allowing the owner to view saved credentials at any time.
There are several proven methods for extracting this information, ranging from simply viewing the adapter's properties to using the command line. The choice of a specific method depends on the operating system version, user access rights, and personal preferences regarding the graphical interface or console commands. Below, we'll examine each available option in detail.
It is important to understand that all the described actions require the presence of administrative rights on the device. Without the appropriate privileges, the Windows security system will not allow access to stored encryption keys. This is a standard practice for protecting user data from unauthorized access.
Viewing the password through the Network and Sharing Center
The most accessible method for most users is to use the operating system's graphical interface. This method doesn't require memorizing complex commands and is suitable even for beginners. You'll need to find the active connection and open its properties.
First, you need to access the network connections menu. In modern versions of Windows, you can do this by right-clicking the Wi-Fi icon in the system tray (near the clock) and selecting "Network and Internet settings." Next, find the "Network and Sharing Center" link or simply "Properties" for the active connection.
After opening the wireless network status window, find the "Wireless Network Properties" button. In the dialog box that opens, go to the "Security" tab. This is where the "Network Security Key" field is located, with the symbols hidden by asterisks.
⚠️ Attention: To display characters in the security key field, check the "Show entered characters" box. If this option is grayed out, your account does not have administrator rights.
By checking the box, you'll see the password you're looking for in plain text. You can copy it or rewrite it manually to connect other devices. This method works reliably on Windows 10 and Windows 11, being a standard feature of the OS.
Using the Command Prompt (CMD)
For those who prefer speed and precision, using the command line is the ideal solution. This method allows you to quickly display all saved profiles and their passwords in plain text. It's especially useful if the graphical interface isn't working correctly.
To use this method, open the command prompt. You can do this by searching in the Start menu and entering the query cmdBe sure to run the application as administrator, otherwise the command will not run. In the window that opens, enter the following command to view a list of all saved networks:
netsh wlan show profiles
The system will display a list of all profiles the laptop has ever connected to. Find your network name (SSID) in the list. Next, to view the password for this specific network, use the command with the profile name. The syntax is:
netsh wlan show profile name="Network_Name" key=clear
Instead of Network_name Enter the exact name of your Wi-Fi network that you saw in the list earlier. In both commands, find the "Security settings" section. The "Key Content" line will contain the password you're looking for in cleartext.
What to do if the command doesn't work?
If the system displays "Access Denied," make sure you're running CMD as an administrator. The command may also fail if the network profile has been deleted or corrupted.
Viewing saved keys via PowerShell
A more powerful alternative to the classic command line is PowerShell. It provides similar functionality but works with more modern system modules. This method is often useful when standard utilities fail.
Launch PowerShell as administrator. Enter the command to retrieve all Wi-Fi profiles. Unlike CMD, this command immediately displays a list of passwords in a more structured, albeit difficult to read, format. The basic command for viewing profiles is:
Get-NetConnectionProfile
However, for direct password extraction it is more convenient to use a combination with netsh within PowerShell or specialized scripts. The easiest option is to simply copy the command from the previous section and paste it into the PowerShell window. The command interpreter will execute it without errors.
Advanced users can export all profiles to XML files, where passwords will be stored in clear text. The command to export a profile is:
netsh wlan export profile name="Network_Name" key=clear folder="C:\Users\Public"
Once executed, an XML file will appear in the specified folder. Open it with any text editor (such as Notepad) and you'll find the tag keyMaterial, which will contain a password. This is convenient for backing up settings.
Finding a password through the router's web interface
If your laptop isn't connected to the network or you want to know the password currently used on your router (even if it's different from the one your computer remembers), you should check the router's settings. This is the most reliable source of truth.
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 your browser's address bar. If you don't know the gateway address, you can find it through the command line with the command ipconfig (“Default gateway” parameter).
After entering the address, the system will ask for your username and password. If you haven't changed them, they're listed on a sticker on the bottom of the router (often it's admin/admin). Once you've logged in, find the "Wireless" or "Wi-Fi" section. The current WPA/WPA2 key value will be displayed in the "Security" or "Security Settings" subsections.
Here you can also change the password to a more complex one if you suspect unauthorized access to your network. Be sure to save the changes by clicking "Apply" or "Save." After this, all devices will be required to reconnect with the new key.
| Parameter | Default value | Recommended value |
|---|---|---|
| Gateway address | 192.168.0.1 | Do not change |
| Admin login | admin | Unique word |
| Admin password | admin / 1234 | Complex combination |
| Encryption type | WPA2-PSK | WPA3 or WPA2 |
⚠️ Attention: Router interfaces from different manufacturers (TP-Link, ASUS, D-Link, Keenetic) vary significantly. Look for sections labeled "Wireless," "WLAN," and "Wi-Fi Settings."
Password recovery programs
There's specialized software that automates the process of retrieving saved keys. These tools are useful when you need to quickly access dozens of profiles or when standard Windows tools are blocked for some reason.
One of the most popular programs is WirelessKeyView from NirSoft. This is a portable utility that requires no installation. It scans the Windows registry and displays a list of all networks with passwords in HEX and ASCII format. The program is free for personal use.
Another option is - WiFi Password DecoderIt works on a similar principle, providing a convenient interface for copying keys. However, when using third-party software, exercise caution: download programs only from the developers' official websites to avoid viruses.
Using such programs requires temporarily disabling your antivirus software, as they intrude into security system processes to read data, which may be detected as suspicious activity by security software. Once the password is obtained, the program can be uninstalled.
☑️ Security when using software
Resetting your router as a last resort
If none of these methods work, or you don't know the router's password to access the settings, your last option is a hard reset. This will restore the device to factory settings, including the Wi-Fi password, which will be located on the sticker.
There is a small hole with an inscription on the router body. Reset or RestoreTo activate the function, press it with a thin object (such as a paperclip or toothpick) and hold it there for about 10-15 seconds until the indicators blink. The router will reboot.
After the reset, the network name will be as indicated on the sticker (e.g., TP-Link_XXXX), and the password will match the factory default (also on the sticker). You will need to reconfigure your internet connection (PPPoE, L2TP, or Dynamic IP) if your provider requires authentication.
This method is effective but labor-intensive, as it requires reconfiguring all network settings. Use it only if you've exhausted all other options or if you know the exact internet settings from your ISP.
Frequently Asked Questions (FAQ)
Is it possible to find out the Wi-Fi password if the laptop is not connected to it?
No, if the laptop has never connected to this network, it doesn't store its password. In this case, only knowing the password for the router's admin panel or physical access to the device with the WPS button (if supported and enabled) will help.
Where can I find the password on the router itself?
Look at the sticker on the bottom or back of the device. It shows the default SSID (network name) and PIN/Password (security key). If the password has been changed, the sticker will show the old, factory key.
Is it safe to save passwords in Windows?
Yes, Windows stores them in encrypted form. They can only be accessed by administrator rights on that computer. However, if attackers gain physical access to your PC, they can extract this data.
What should I do if the "Show characters" field is inactive?
This means you're logged in as a standard user. You'll need to either ask the administrator for a password or log in with an account with administrator privileges.
Is it possible to recover a password via phone?
On Android with root access you can view the file wpa_supplicant.confOn an unjailbroken iPhone, you can't view the saved password in plain text, but you can transfer it to another Apple device using the sharing feature.