It's quite common to need to connect a new device to an existing wireless network but lose or forget the security key. Fortunately, the Windows operating system stores data about previously connected networks in a special storage area, allowing you to restore access without having to reset the router. This is especially true for offices or large apartments, where access to the router's admin panel may be limited or physically difficult.
There are several proven methods for extracting stored encryption keys, ranging from the standard system graphical interface to using the command line for deeper analysis. The specific method you choose depends on your operating system version, whether you have administrator rights, and the device's current connection status to the access point. In some cases, physical access to the router itself or the use of third-party network auditing software may be required.
It is important to understand that all actions described below assume that you have legal access to this network or are its administrator. Modern security protocols, such as WPA3, provide a high level of protection, so simple brute-force methods do not work here, and recovery is only possible through data saved in the system or equipment settings.
Using the Windows graphical interface
The simplest and most accessible way to save a password is available to Windows 10 and Windows 11 users through the standard network settings menu. This method doesn't require complex commands or additional software, making it ideal for casual users. However, it's important to note that this option only works if your computer is currently connected to the wireless network you need to retrieve the key from.
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 "Network and Internet settings." In the window that opens, find the "Network and Sharing Center" link or go to "Advanced network settings." Next, select your active connection, click the name of your wireless network, and in the dialog box that appears, go to the "Wireless Security" tab.
It's here, in the "Network Security Key" field, that the password characters are hidden. To see them, simply check the "Show entered characters" box. The system may prompt you to confirm administrator rights or enter the user account password, which is a standard security measure against unauthorized access. After confirmation, you'll see the required character combination in plain text.
⚠️ Attention: If the Security tab is dimmed or the fields are grayed out, your account may not have sufficient permissions, or your organization's group policies may be blocking you from viewing this data.
In some corporate environments, administrators may intentionally hide this data through the registry or security policies. In this case, the standard graphical interface won't help, and you'll have to resort to more advanced methods, described below. It's also worth keeping in mind that the interface may vary slightly depending on the build. Windows or the installed design theme.
Viewing a password via the command line
For those who prefer working with the terminal or need to obtain information about a network to which the computer is not currently connected but has previously connected, the command line is ideal. This method is universal and works on all modern versions of Microsoft OS. It displays a list of all saved profiles and detailed information for each one, including the encryption type and access key.
To launch the utility, press the key combination Win + R, enter cmd and press Enter, or search for "Command Prompt" and run it as administrator. The first step is to get a list of all saved profiles. To do this, enter the following command:
netsh wlan show profiles
The system will return a list of all networks ever detected by your adapter. Find the desired name (SSID) in the list. Next, to view the password for this specific network, use the command with the profile name. Note that the name must be enclosed in quotation marks if it contains spaces:
netsh wlan show profile name="Network_Name" key=clear
In the command output, find the "Security settings" section. The "Key Content" line will display the password you're looking for in clear text. This method also allows you to find out which encryption algorithm is used (for example, WPA2-Personal or WPA3), which is useful for diagnosing compatibility issues with older devices.
If you receive the error message "Group Policy does not allow..." when running the command, it means that access to WLAN data is restricted by system security settings. In this case, you should edit the registry or use alternative methods. It's also helpful to know that the command key=clear Only works for profiles where the key is actually saved; for guest networks with web page authentication (Captive Portal), the password may not be explicitly specified.
Accessing router settings via a browser
If none of the computers on the network remember the password, or you want to change it to a more complex one, the only solution is to log in to the router's web interface. To do this, you'll need the default gateway IP address and the login credentials for the admin panel. These details are usually found on a sticker on the bottom of the device, but if the sticker has worn off, you can try the default combinations.
Open any browser and enter the router's IP address in the address bar. Most often, this is 192.168.0.1 or 192.168.1.1If the page doesn't load, find out the exact gateway address through the command line by entering the command ipconfig and find the line "Default Gateway." After entering the address, the system will ask for your username and password. If you haven't changed them, try the default ones: admin/admin, admin/password, or root/admin.
Once in the menu, look for the section related to wireless networking. It may be called "Wireless," "Wi-Fi," "Wireless Mode," or "WLAN." Within this section, there will be a subsection called "Security" or "Wireless Network Settings." This is where the "PSK Password," "WPA Pre-Shared Key," or "Wireless Network Password" field is located. Here, you can not only view the current password but also change it.
| Router brand | Standard IP | Default login | Default password |
|---|---|---|---|
| TP-Link | 192.168.0.1 | admin | admin |
| ASUS | 192.168.1.1 | admin | admin |
| D-Link | 192.168.0.1 | admin | (empty) |
| Keenetic | 192.168.1.1 | admin | 1234 |
| Tenda | 192.168.0.1 | admin | admin |
After changing the settings, be sure to click "Save" or "Apply." The router may reboot, and all connected devices will lose connection until you enter the new password on each one. This is a good time to check if an unauthorized user has connected to your network and, if necessary, configure MAC address filtering.
⚠️ Attention: Router firmware interfaces are constantly updated. The menu layout may differ from that described, especially in newer models with cloud management.
Using third-party programs
There is specialized software designed to recover lost passwords and analyze wireless networks. One of the most popular tools is the utility WirelessKeyView from NirSoft. It scans the Windows registry and extracts all saved wireless network keys. The program requires no installation and runs immediately after launch, presenting the data in a convenient table format.
Another powerful tool is WiFi Password Decoder or functionality built into the drivers of some network cards. However, extreme caution should be exercised when using third-party software. Many "hacking" utilities that promise to hack any WiFi actually contain viruses, miners, or spyware. Download programs only from the developers' official websites.
The advantage of such programs is the ability to export data to a text file or HTML, which is convenient for backing up settings before reinstalling the system. Some advanced password managers, such as KeePass or built into the browser Google Chrome (via sync settings) can also store WiFi data if you've previously stored it there.
For regular users, built-in Windows tools are usually sufficient. Third-party software only makes sense in specific cases, such as when standard methods are blocked by group policies or system file corruption. In corporate environments, the use of such programs may be prohibited by information security policies.
Recovery via mobile devices
Modern smartphones based on Android And iOS They also store passwords for the networks they've connected to. If your computer can't display the password, try viewing it on your phone. On Android (version 10 and above), simply go to Wi-Fi settings, select the desired network, and tap the "Share" button or the QR code icon. The password is often displayed as text under the QR code or can be scanned by another device.
Ecosystem users Apple You can use iCloud Keychain sync. If you have a Mac linked to the same Apple ID, the password will automatically appear in your computer's keychain. On an iPhone with iOS 16 or later, you can view the password by going to Wi-Fi settings, tapping the "i" icon next to the network, tapping the hidden dots, and confirming with FaceID or TouchID.
This method is especially useful when you don't have a computer with administrator rights, but you do have a smartphone that has previously successfully connected to the hotspot. Mobile operating systems strictly enforce security, so viewing the password will require biometric authentication or a screen unlock PIN.
It's worth noting that on older versions of Android, viewing saved passwords in plain text was impossible without root access. This is now a standard feature. However, if the phone was reset to factory settings, network data will be permanently deleted, and this method will not work.
Resetting your router as a last resort
If none of the software methods work, passwords aren't saved anywhere, and access to the admin panel is blocked by a previously changed password, the final, radical option is to reset the router to factory settings (hard reset). This will return the device to its out-of-the-box state, restoring the default login, password, and, importantly, wireless network settings (often the network will become open or receive a default name).
To perform a reset, find a small hole with the inscription on the router body Reset or RestorePlug in the router and press the button inside the hole with a thin object (paperclip, toothpick). Hold it for 10-15 seconds until the indicators on the front panel flash simultaneously. This indicates the reset process has begun.
After rebooting, the router will operate with factory settings. You can connect to it using the information on the sticker on the bottom, log in to the web interface, and reconfigure your internet connection and WiFi password. Please remember that after the reset, you will have to re-enter the password on all devices in your home, as the old keys will no longer work.
⚠️ Attention: Resetting will erase all your personal settings, including connection type (PPPoE, L2TP), static IP addresses, and DNS settings. Make sure you have your contract with your provider and the necessary data for reconfiguration.
This method is not recommended unless you are confident in reconfiguring your equipment. In complex cases (such as using IPTV or specific provider settings), it is best to call a technician. However, for most home networks with a dynamic IP (DHCP), the setup process takes no more than 5 minutes.
Frequently Asked Questions (FAQ)
Is it possible to find out the WiFi password if the computer is not connected to it?
Yes, this is possible if the computer has previously connected to this network. Windows saves profiles for all networks. Use the command prompt and the command netsh wlan show profile name="Name" key=clearto see the saved key even if you are currently out of network coverage.
What should I do if I forgot my router admin password?
If the default passwords (admin/admin) aren't working, and you've changed them and forgotten them, a full router reset using the Reset button will help. Recovering a forgotten administrator password without a factory reset is technically impossible for security reasons.
Where is the reset button physically located on the router?
This is usually a small indentation on the back or bottom of the device, near the LAN ports or power jack. It's often labeled "Reset" or "WPS/Reset." You'll need a paperclip or a needle to press it.
Are password recovery programs safe to use?
Using trusted utilities from reputable developers (such as NirSoft) is safe. However, downloading "hacks" from dubious websites carries a high risk of computer infection. Always scan your files with an antivirus.
Why is the password field in network settings grayed out and unavailable?
This means your current Windows user account doesn't have administrator rights, or your system's group policies prevent you from viewing security keys. Try logging in as an administrator or using a command prompt running as one.