It's quite common to need to connect a new device to a network but lose the access key. Many users store passwords on their smartphone or on a piece of paper, which they eventually lose. However, if at least one computer or laptop is already connected to the wireless network, restoring access is easy.
The Windows operating system automatically saves the configuration of connected networks for the user's convenience. This allows This eliminates the need to re-enter data each time, but also allows you to access the saved key at any time. There are several proven methods, from simple graphical interfaces to advanced console commands.
In this article, we'll cover all the current methods for restoring access. You'll learn how to find data through the standard menu, use the command line to retrieve information about all previously connected networks, and what to do if none of your devices remember the password.
Finding a saved password through Windows settings
The easiest and safest way to find a forgotten key combination is to use the operating system's standard graphical interface. This method works if your computer is currently connected to Wi-Fi or has previously connected. In Windows 10 and earlier versions, the process is slightly different than in the latest Windows 11, where Microsoft has updated the menu design.
First, you need to open your network settings. Right-click the connection icon in the system tray (near the clock) and select Network and Internet settingsIn the window that opens, find the section Network and Sharing Center or point Additional network settingsNext, you should select an active wireless connection.
In the status window, click the button Wireless network properties. Go to the tab SecurityThis is where the information you are looking for is stored. By default, the field Network security key hidden by stars to protect from prying eyes.
⚠️ Note: Displaying hidden characters requires administrator rights. If the system asks for confirmation, make sure you are logged in with an account with full rights.
To see the code, check the box next to the item Show entered charactersImmediately after this, the asterisks will turn into readable text. Copy it or write it down. This is the most direct method, requiring no additional software.
Using Command Prompt to Recover Data
For more experienced users or when the graphical interface isn't working correctly, the command line is ideal. This tool allows access to deep system settings. Command line (cmd) provides a text-based interface for managing the operating system.
Launch the terminal as administrator. To do this, click Win + R, enter cmd and press Ctrl + Shift + EnterFirst, you need to find a list of all networks the computer has ever connected to. Enter the command:
netsh wlan show profiles
In the list that appears, find the name of your network. Next, you need to request detailed information for this specific profile by adding the key. key=clearThe command syntax is as follows:
netsh wlan show profile name="Network_Name" key=clear
After executing the command, scroll down to the section Security parameters. In the line Key content The password you're looking for will be displayed in clear text. This method is convenient because it allows you to quickly obtain data without having to navigate through the settings menu.
☑️ Check before entering a command
If the network name contains spaces or special characters, be sure to enclose it in quotation marks, as shown in the example above. Otherwise, the system will return a syntax error and fail to process the request.
View passwords for all networks ever connected
It often happens that a computer remembers dozens of networks: home, office, Wi-Fi at a cafe. If you need to restore access to several of them at once, manually searching through the graphical interface will take a long time. The command line allows you to list all saved profiles with passwords in one block.
To do this, use a modification of the previous command. Open a command prompt with administrator rights and enter:
netsh wlan show profile name="*" key=clear
The asterisk in this case acts as a wildcard, meaning "all." The system will generate a long report listing all known profiles. Each profile will have a security section with a public key.
To avoid getting lost in the text stream, you can use a filter. For example, to find the password only for the network named "HomeNet," enter:
netsh wlan show profile name="HomeNet" key=clear | findstr"Contents"
In the English version of Windows, the keywords will be different: Key Content instead of Key contentThis is important to consider if you have an English-language OS or use scripts.
What should I do if the system says "Network not found"?
This means the profile has been deleted from the Windows registry. This happens after resetting network settings or clearing the connection history. In this case, it's impossible to recover the password from the computer, and you'll have to look for other methods.
Comparison of access recovery methods
Each of the described methods has its advantages and disadvantages depending on the situation. The graphical interface is more intuitive for beginners, while console commands provide more control and speed for advanced users. It's important to choose the method that best suits your current situation.
The table below provides a comparison of the main characteristics of the recovery methods:
| Method | Complexity | Required rights | Speed |
|---|---|---|---|
| Via GUI (Properties) | Low | Administrator | Average |
| Command line (single profile) | Average | Administrator | High |
| Command line (all profiles) | High | Administrator | High |
| Via the router's web interface | Average | Access to the router | Low |
Using third-party software such as WirelessKeyView or Wifi Password Decoder, is also possible, but carries security risks. Antivirus programs often treat such programs as threats, as they are essentially hacking tools.
Restoring via the router's web interface
If none of the computers remember the password, but you have physical access to the router and can connect to it via cable or Wi-Fi (if you don't need internet access yet, just the admin panel), you can view the settings directly on the device. This will require the default gateway address.
Usually it is 192.168.0.1 or 192.168.1.1Enter this address into the browser's address bar. The system will ask for your login and password to access the settings. If you haven't changed them, they are located on a sticker on the bottom of the router (often admin/admin).
After authorization, go to the section Wireless or Wireless mode, then in Wireless SecurityIn the field PSK Password or Password The current access key will be displayed. You can also change it for a new one here if the old one is irretrievably lost.
⚠️ Attention: Interfaces of routers from different manufacturers (TP-Link, Asus, D-Link, Keenetic) vary greatly. The menus may have different names, but the logic remains the same: look for the section related to Wireless or Wi-Fi.
After changing the password in the router settings, all connected devices will lose connection and require re-authorization with the new code. Be prepared to reconnect phones, tablets, and TVs.
What to do if none of the methods helped
In rare cases, the computer may not remember the network (the profile has been deleted), access to the router is blocked, and the password is not recorded anywhere. In this situation, the only remaining radical, yet effective, option is to reset the router to factory settings.
There is a button on the device body Reset (often recessed into the case). Press it with a paperclip for 10-15 seconds until the lights blink. The router will reboot, and the settings will return to their default state. The Wi-Fi password will be the one printed on the sticker on the bottom of the device.
However, this method requires reconfiguring your internet connection (username and password from your ISP) if they aren't automatically entered. Make sure you have a contract with your ISP or have this information saved elsewhere.
It's also worth checking other devices. If you have a rooted Android smartphone or a jailbroken iPhone (although this is extremely difficult to do on modern iOS devices without syncing with iCloud Keychain on a Mac), the password may be stored there. Mac owners can find the password in the keychain (Keychain Access).
Frequently Asked Questions (FAQ)
Is it possible to find out a Wi-Fi password if the computer is not connected to it?
No, the Windows operating system only stores passwords for networks to which the device has connected at least once and the profile has been saved. If the profile is deleted or the network is new, it is impossible to find the password without access to the router or another connected device.
Is it safe to use password cracking or viewing programs?
Using unverified software from the internet carries risks. Many such programs contain malware or viruses. It is recommended to use only built-in Windows tools (cmd, PowerShell, GUI), as they are safe and do not require installation.
Where are Wi-Fi passwords stored in the Windows registry?
Technically, the data is stored in a protected section of the registry and system configuration files in encrypted form. Directly editing the registry to extract the password is difficult and not recommended for regular users. It's easier to use the command netsh, which will decrypt and display the data itself.
I changed the password on my router, but my computer keeps saying "Connection error." What should I do?
You need to "forget" the network on your computer. Go to Wi-Fi settings, select your network, and click Forget or Delete profileAfter this, reconnect by entering the new password.
Can a guest find out my password through my computer?
If a guest has physical access to your unlocked computer and administrator privileges (or you've given them your account password), they can use the methods described (cmd or network properties) to view saved passwords. Always lock your screen when you're not logged in.