Many users are familiar with the situation of needing to connect a new device to a wireless network but losing or forgetting the access key. We often change the default router settings to complex combinations for security reasons, only to later forget them. Fortunately, modern operating systems and network equipment store data about previous connections, allowing you to restore access without complex steps.
There are several legal ways to find out a forgotten password if you have previously connected to this network from another device or have physical access to the router. Restoring access This can be done through Windows settings, the router interface, or even an Android smartphone. It's important to understand that hacking other people's networks is prohibited by law, so all the methods described here apply only to your own equipment.
In this article, we'll take a detailed look at the technical aspects of retrieving data from the system registry and router settings. You'll learn how to use the command line to retrieve hidden information and understand how the WPA2 and WPA3 security protocols work in terms of key storage.
Using the Windows Command Prompt to Recover the Key
The Windows operating system has powerful built-in tools for managing network connections, which are often ignored by ordinary users. Using the utility netsh You can access saved Wi-Fi profiles, including displaying security keys in plaintext. This method is especially effective if the current device is not connected to the network but has previously connected.
To get started, you need to launch the command prompt with administrator rights. This is a critical step, as without elevated privileges, the system will not allow you to view saved credentials. Enter cmd in the search, right-click and select the appropriate menu item.
The first step in the console is to get a list of all saved profiles. Enter the command:
netsh wlan show profiles
In the list that appears, find the name of your network. Then use the following syntax, replacing "Network_Name" with your actual profile name:
netsh wlan show profile name="Network_Name" key=clear
In the "Security settings" information block, find the "Key Content" line. This is where the password you're looking for will be displayed. This method works regardless of the Windows version, whether it's Windows 10 or newer editions.
⚠️ Attention: The command line is case-sensitive and quotation mark-sensitive. If the network name contains spaces, be sure to enclose it in quotation marks, otherwise the command will return a syntax error.
Using the console allows you to quickly access data without having to dig into the graphical interface, which may differ on different OS builds.
Viewing a password through the Windows graphical interface
For those who prefer visual control, the operating system provides the ability to view saved keys through the standard wireless network properties window. This method is less informative than the console, but is more familiar to most users who don't want to interact with code.
Open the Network and Sharing Control Panel. In modern versions of Windows 10 and 11, you can do this by right-clicking the network icon in the system tray and selecting "Network and Internet Settings," then going to Advanced Settings or the Network and Sharing Center. Find your active connection and click "Wireless Network Properties."
In the window that opens, go to the "Security" tab. By default, the "Network Security Key" field is hidden by asterisks. To see the characters, check the "Show entered characters" box.
If the security tab is grayed out or the checkbox is unchecked, this may mean your current account doesn't have administrator rights or the network profile is corrupted. In this case, you should use the command line method described above or check your router settings.
This interface also shows the encryption type, for example, WPA2-Personal or WPA3, which is useful to know when setting up older devices that may not support new security standards.
☑️ Check access rights
Login to the router's web interface
The most secure way to find out the password if no devices are connected to the network is to log into the router's control panel. To do this, you'll need to connect your computer to the router using LAN cable (Ethernet) or connect to an open guest network if one is configured.
The login address is usually found on a sticker on the bottom of the device. This is most often the IP address. 192.168.0.1 or 192.168.1.1, or a domain name like tplinkwifi.netEnter the address in your browser and log in. The default username and password are also indicated on the sticker (often admin/admin).
After entering the interface, navigation depends on the router model (TP-Link, ASUS, D-Link, Keenetic). Look for the "Wireless," "Wi-Fi," "Wireless Mode," or "WLAN Settings" sections. In the "Security" or "Protection" subsection, you'll see a field with a WPA/WPA2 key.
| Router brand | Typical entry address | Wi-Fi settings section | Path to password |
|---|---|---|---|
| TP-Link | 192.168.0.1 | Wireless | Wireless Security -> Password |
| ASUS | 192.168.1.1 | Wireless network | General -> WPA Preprocessing Key |
| D-Link | 192.168.0.1 | Wi-Fi | Security Settings -> Encryption Key |
| Keenetic | my.keenetic.net | My Networks and Wi-Fi | Home Network -> Password |
This will reset your Wi-Fi password to the default one found on the sticker, but will delete all your personal settings.
⚠️ Attention: Resetting your router with the Reset button interrupts your internet connection. Make sure you have the PPPoE or L2TP settings from your ISP if they are required for internet access.
The interfaces are constantly updated, so the exact names of the options may vary. Look for keywords: PSK, Pre-Shared Key, Passphrase.
What to do if the address 192.168.1.1 does not open?
If the default address doesn't respond, check your network card's IP address settings. It should obtain an address automatically (DHCP). Also, try the ipconfig command in the command line—the default gateway address is your router's address.
Using an Android smartphone to view the key
Android smartphone owners can take advantage of the QR code password sharing feature, which was introduced in Android 10 and has become standard in later versions. This allows you to extract passwords from the system without root access.
Go to Wi-Fi settings on your phone that's already connected to the network. Tap the network name or the gear icon next to it. Select "Share" or "QR code." The system will ask you to verify your identity (fingerprint, face, or PIN).
A QR code will appear on the screen. In many shells (MIUI, OneUI, ColorOS) The password is displayed directly below the code in text form. If the text is hidden, take a screenshot and open it using the Google Lens app or any QR code scanner.
The scanner recognizes an encoded string that has the following format: WIFI:S:MyNetwork;T:WPA;P:MyPassword;;Symbols after P: and before ;; - this is your password.
This method is convenient because it doesn't require connecting cables or navigating complex computer menus. It works at the system level and is available to any application with access to the camera and clipboard.
⚠️ Attention: Be careful when scanning QR codes from unknown sources. While Wi-Fi codes are safe, attackers can disguise malicious links as Wi-Fi configuration files.
Viewing saved networks on macOS
Apple computer users can also restore access to forgotten networks using iCloud Keychain. macOS stores all passwords encrypted but allows authorized users to view them.
Open Keychain Access. You can find it via Spotlight (Cmd + Space) or in the Applications -> Utilities folder. In the list on the left, select the "System" or "Login" category, then find the "Passwords" tab.
Find the name of your Wi-Fi network in the list. Double-click it. In the properties window that opens, check the "Show password" box. The system will ask you to enter your macOS account password (the username and password of the user you're logged in with).
After confirmation, you'll see the key you're looking for in the text field. This method works reliably on all modern versions of macOS, including Catalina, Big Sur, Monterey and newer.
An alternative method for advanced users is to use the terminal. The command security find-generic-password -wa "Network_Name" will display the password in the console, but will require confirmation in the system dialog.
Specialized programs and utilities
There is software designed to manage wireless connections and recover passwords. Utilities such as WirelessKeyView from NirSoft, are capable of extracting saved keys from the Windows registry and displaying them in a convenient list.
These programs are useful when standard methods fail or when you need to export all saved networks to a text file at once. However, using third-party software requires caution.
- 📥 WirelessKeyView: A lightweight, no-installation utility that displays all WEP/WPA keys.
- 📡 WiFi Password Decoder: Tool for decoding configuration files.
- 🛡️ Antivirus Check: Before running any network utilities, be sure to check them with an antivirus.
Many antivirus programs may label such programs as "HackTools" or "RiskWare" because they use the same data access methods as malware. If you downloaded the utility from the developer's official website, this is a false positive.
It's not recommended to use programs with names like "Wi-Fi Hacker" or "Password Cracker" found on dubious websites. They often contain viruses, Trojans, or miners that will do more harm than good to your computer.
⚠️ Attention: Download recovery tools only from the developers' official websites. Using cracked versions of paid password recovery software is a surefire way to infect your system.
Why does my antivirus complain about WirelessKeyView?
The program injects itself into system processes to read protected memory where passwords are stored. This behavior is also typical of stealer viruses, so the antivirus's heuristic analysis flags the tool as potentially dangerous.
Frequently Asked Questions (FAQ)
Is it possible to find out your neighbors' Wi-Fi password via their phone?
No, it's impossible to find out someone else's secure network password using legal methods. Apps that promise this are either scams or use stolen password databases, which is illegal. The only option is for your neighbor to grant you access via guest mode or a QR code.
What should I do if my router doesn't accept the default admin password?
Most likely, the password was changed during initial setup. Try to remember if you wrote it down. If you can't remember it, the only solution is to reset the router to factory settings by holding the Reset button for 10-15 seconds.
Where can I find a password file on Android without root access?
Without root access to system file /data/misc/wifi/wpa_supplicant.conf It's closed. However, as described above, you can use the "Share" feature in your Wi-Fi settings and scan the password using a QR code scanner or Google Lens.
Is it safe to save your password in your browser?
Modern browsers reliably encrypt saved data, but the main risk is physical access to your computer. If you don't have a Windows or macOS login password, anyone who accesses your computer will be able to see your saved passwords in your browser settings.
How do I change my router password to make it easier to remember?
Log into the router interface (192.168.0.1) and find the Wireless Security section. In the PSK Password field, enter a new combination. Use a mix of letters and numbers, but avoid complex special characters if you have older devices that might not process them correctly. Don't forget to reconnect all your devices.