It's common to connect a new device to your home or office and forget the wireless network security key. It could be a friend's smartphone, a new smart vacuum cleaner, or a colleague's tablet that urgently needs internet access. While a simple router reset might solve the problem, this will require reconfiguring all the connection settings, which is time-consuming.
Fortunately, the operating system Windows Stores passwords for all networks your laptop has ever connected to in a dedicated, secure vault. You don't need to be a system administrator or have extensive networking knowledge to extract this data. All you need is the exact steps and administrator access to the device.
In this article, we'll take a detailed look at all available methods for recovering lost data, from standard graphical interfaces to using the command line. You'll learn how to quickly find the information you need on laptops running Windows 10 And Windows 11, and you will also learn what to do if standard methods do not work.
Finding a password through network settings in Windows 10 and 11
The easiest and safest way to find a forgotten key is to use the operating system's standard tools. If your laptop is currently connected to the required network or has previously connected to it, the system will have saved this information. Windows 10 The process is slightly different from the eleventh version, but the logic remains similar.
To begin, open the Start menu and go to Settings. You'll need to find the item responsible for network connections. Depending on your OS version, the path may look like this: Settings → Network and Internet → Wi-Fi or Control Panel → Network and Internet → Network and Sharing Center. The current connection status is displayed here.
Find your network name in the list of active connections, right-click it, and select "Properties." In the window that opens, look for the "Security" tab. This is where the code you're looking for is hidden. By default, it appears as black dots or asterisks to protect it from prying eyes.
To see characters, check the box next to "Show entered characters." The system may ask you to confirm administrator rights, after which the password will become visible in the text field. Copy it and use it to connect other devices.
⚠️ Note: If you are not a device administrator, the system will not allow you to view saved passwords. In corporate networks, access to these settings is often blocked by security policies.
Using Command Prompt to Recover Data
For more advanced users or in cases where the graphical interface does not work correctly, the command line is ideal. WindowsThis method is universal and works on all OS versions starting from Windows 7It allows you to not only view the password for the current network, but also display a list of all saved profiles.
To launch the utility, press the key combination Win + R, enter cmd and press Enter. It's best to run the console as administrator to avoid access rights issues. The first step is to get a list of all networks the laptop has ever connected to.
Enter the command netsh wlan show profilesIn response, you will receive a list of profile names. Find the desired network name in the list. Then use the command to display details for a specific profile by adding the key key=clear.
netsh wlan show profile name="Your_Network_Name" key=clear
In the command output, find the line "Key Content." This is where the password will be displayed in cleartext. This method is especially useful if you need to quickly copy a complex key without risking character errors.
☑️ Check before entering a command
Please note that the network name in the command must match the actual profile name. If the name contains spaces, it must be enclosed in quotation marks, otherwise the system will return an error.
Viewing the password through the router settings
If your laptop isn't connected to the network or there's no data in the system, you can always access the source of your internet connection—the router. This requires access to the device's web interface. Typically, standard addresses are used for access, such as 192.168.0.1 or 192.168.1.1.
You'll need a browser and login credentials for the admin panel. These are often found on a sticker on the bottom of the router. Once inside, look for a section related to wireless mode. It may be called Wireless, Wi-Fi or Wireless network.
Inside the section, find the subsection "Security" (Security) or "WLAN Settings". There will be a "Password" field (Password, WPA Pre-Shared Key). You can simply look at it or replace it with a new one if the old one is completely forgotten.
Changing your router password will disconnect all connected devices. You'll have to reconnect each device using the new security key. This is a good reason to strengthen your network security.
| Router brand | Entrance address | Menu section | Password field |
|---|---|---|---|
| TP-Link | 192.168.0.1 | Wireless → Wireless Security | Wireless Password |
| Asus | 192.168.1.1 | Wireless Network → WPS | WPA Pre-Shared Key Password |
| D-Link | 192.168.0.1 | Wi-Fi → Security Settings | PSK encryption key |
| Keenetic | my.keenetic.net | My Networks and Wi-Fi → Home Network | Wi-Fi network password |
What to do if the router address has changed?
If standard IP addresses don't open the login page, check your network adapter settings. The Default Gateway in the IPv4 protocol properties is your router's address.
Specifics of working with Windows 11
In the new operating system Windows 11 Microsoft has significantly redesigned the Settings interface, which may be confusing for users accustomed to the classic Control Panel. Most functions are now concentrated in the Settings app.
To find your password, go to Settings → Network and Internet → Wi-FiHere, select "Manage known networks." Select the desired network from the list. Unlike previous versions, there may not be a direct "Show password" button for already connected networks in some builds, but for known networks, the feature is often available.
If the GUI does not provide a response, Windows 11 The command line method described above also works. Additionally, the new OS has improved password synchronization across accounts. MicrosoftIf you log in with the same account on different devices, the password may automatically be retrieved from the other device.
The interface has become more minimalist, but it remains functional. The key is to pay close attention to switching between the "Properties" and "Control" tabs.
Third-party password recovery utilities
There are many programs that automate the process of extracting saved keys. One of the most popular and time-tested utilities is WirelessKeyView from NirSoftIt does not require installation and works immediately after launch.
The program scans the registry and displays a list of all wireless networks ever connected to the computer. The table displays the network name (SSID), security type, and the key itself in plain text. This is convenient if you need to quickly extract passwords from an old laptop before selling it or reinstalling the operating system.
However, using third-party software always carries risks. Antivirus programs may detect such programs as hacker tools, as they can indeed be used by criminals to steal data. Download utilities only from the developers' official websites.
⚠️ Warning: Using password recovery programs on other people's computers without the owner's permission is illegal. Use these tools only to restore access to your own networks.
There are also paid password managers that can store not only website keys but also Wi-Fi network data if you allow them to do so. An example is KeePass or the built-in manager in the browser Google Chrome (via QR code).
Access problems and possible errors
The process doesn't always go smoothly. Sometimes the system may return errors when attempting to display the password or execute a command. This is most often due to access rights or corruption of the system files responsible for storing profiles.
If the console command returns the error "The group or resource cannot perform the operation," try updating your wireless adapter drivers. Sometimes the problem lies with the network card itself not functioning properly after waking from sleep mode.
In corporate environments, passwords may not be stored in cleartext due to group update policies. In this case, even with administrator rights, you may see a blank field or be denied access. The only solution is to contact your system administrator.
It's also worth considering that if you used the WPS function to connect (the button on the router), the password may not be saved explicitly in some Windows configurations, since a temporary encryption key is used.
Frequently Asked Questions
Is it possible to find out the Wi-Fi password if the laptop has never connected to it?
No, it's impossible to programmatically obtain the password from a device that has never connected to the network. The password must have been entered and saved in the system at least once. If the laptop is "clean" or the network is new to it, only the router or polling other users will help.
Is it safe to save a password in Windows?
Yes, Windows encrypts saved passwords. However, if an attacker with administrator rights gains access to your computer, they can retrieve them. For maximum security, use complex passwords and don't allow others full access to your PC.
What should I do if I forgot my router password to access the settings?
If you changed the default administrator password and forgot it, a hard reset will be the only solution. There's a small hole on the router housing with a button that needs to be pressed with a paperclip for 10-15 seconds while the power is on. This will reset all settings to factory defaults.
Does this method work on MacBook?
On macOS, the process is different. Passwords are stored in Keychain Access. Open Keychain Access, find the network name, open its properties, and check "Show password," confirming the action with your Mac account password.