It's quite common to need urgent internet access but have forgotten or lost your wireless network password. This can happen after reinstalling the operating system or purchasing a new one. laptop or router settings changed by other family members. Fortunately, modern operating systems and network equipment provide several mechanisms for restoring access without having to reset the router to factory settings.
Before you begin any technical manipulations, it's important to understand that we're only talking about networks you've previously accessed, or networks where you have physical access to the equipment. Hacking someone else's Wi-Fi This is illegal and violates information security regulations. In this article, we'll look at legitimate methods for restoring access to your own or previously known networks using standard Windows tools and the router's web interface.
The main difficulty is that the password is hidden by default by the system to protect user data. However, Windows stores this data in encrypted form to avoid prompting for it every time you reconnect. Our task is to extract this information or use alternative communication channels, such as WPS or QR codes, if supported by your hardware.
Using the Windows Command Prompt to View Saved Passwords
The most reliable and fastest way to find a forgotten password is to request it from the Windows operating system itself. If your laptop has ever successfully connected to this network, the profile with the security key is already stored in the registry. To access this data, we'll use a built-in utility. netsh, which manages network settings.
First, you need to open the command prompt with administrator privileges. This is mandatory, as viewing saved security keys requires elevated privileges. Simply right-click the "Start" button and select "Windows PowerShell (Administrator)" or "Command Prompt (Administrator)."
In the window that opens, enter the command netsh wlan show profilesIt will list all the Wi-Fi networks your computer has ever connected to. Find the exact name of the network you need (SSID) in the list. Then use the command netsh wlan show profile name="Network_Name" key=clear, replacing "Network_Name" with the actual name of your router.
In the command results, scroll down to the "Security Settings" section. The "Key Content" line will contain the password you're looking for in cleartext. This works on all current versions of Windows, including 10 and 11.
It's worth noting that this method won't work if you've never connected to the network from this laptop or if the profile has been deleted. It's also important to enter the network name correctly, including capitalization, if the name contains spaces or special characters.
Connecting via WPS (Wi-Fi Protected Setup)
WPS technology was developed to simplify connecting devices to a wireless network without having to manually enter a long and complex password. If your router and laptop support this feature, you can connect in just two clicks or the press of a button.
The physical connection method is the simplest: find the button marked on the router body WPSPress and hold it for a few seconds until the WPS indicator starts blinking. Immediately afterward, on a laptop running Windows 10 or 11, select your network from the list of available networks and click "Connect." The system will automatically request access keys from the router.
- 🔘 Find the WPS button on the back or side panel of the router (sometimes it is combined with the Reset button, be careful).
- 🔘 Press the button on the router, then select the network on the laptop within 2 minutes.
- 🔘 Wait for the "Connected" message without entering a password.
- 🔘 If your laptop doesn't have a physical WPS button, use the software method via a PIN code in the driver settings.
It's important to understand that many modern routers have the WPS function disabled by default for security reasons, as this protocol has known vulnerabilities. If the button doesn't respond, the function may be blocked in the router's firmware settings.
⚠️ Warning: Using WPS makes your network potentially vulnerable to brute-force attacks (PIN guessing). After connecting, we recommend disabling WPS in the router settings via the web interface.
Router manufacturers' interfaces are constantly updated, and the location of the WPS settings may vary. Always consult the official documentation for your model if you can't find the required switch in the menu.
Login to the router's web interface to view settings
If you have physical access to the router and can connect your laptop to it via a LAN cable (or you're already connected to Wi-Fi but don't know the password for other devices), you can configure settings directly through the administrator's browser.
To log in, 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 haven't changed the factory settings, the username and password are often the default: admin/admin or indicated on the sticker on the bottom of the device.
After successful authorization, you need to find the section related to the wireless network. Depending on the router model (TP-Link, ASUS, D-Link, Keenetic), this section may be called "Wireless," "Wi-Fi," "Wireless Network," or "WLAN." Inside, look for the "Security" or "Security Settings" subsection.
| Router brand | Typical IP address | Settings section | Standard login |
|---|---|---|---|
| TP-Link | 192.168.0.1 | Wireless -> Wireless Security | admin |
| ASUS | 192.168.1.1 | Wireless Network -> Test Method | admin |
| D-Link | 192.168.0.1 | Wi-Fi -> Security Settings | admin |
| Keenetic | 192.168.1.1 | My Networks and Wi-Fi -> Home Network | admin |
| Tenda | 192.168.0.1 | Wireless Settings -> Wireless Security | admin |
The current password will be displayed in the "Pre-shared Key" or "WPA Key" field. You can copy it or change it to something easier to remember. Don't forget to click "Save" or "Apply" after making changes.
☑️ Check before logging into the router
Using a QR code from another connected device
In the smartphone era, Android and iOS are often the primary devices for logging into the internet. If you have a phone that's already connected to the right Wi-Fi, you can easily transfer these credentials to your laptop without even knowing the password in plain text.
On Android (version 10 and later) and iOS (version 11 and later) smartphones, a QR code generator function is available for guest access. Go to your phone's Wi-Fi settings, tap the gear icon or the information icon next to your active network, and select "Share" or "QR code."
A QR code will appear on your phone's screen. To connect from a laptop, you'll need a camera with QR code scanning capabilities or a dedicated app. However, there's a catch: Windows doesn't natively scan QR codes to connect to Wi-Fi as easily as phones do.
How to scan a QR code on Windows?
Windows 10/11 doesn't have a built-in QR scanner in the Network Control Panel. You'll need to use a third-party app from the Microsoft Store (such as "QR Scanner") or an online service via your webcam. The app will decode the code and display the text containing the password.
There's a simpler option for owners of Samsung smartphones and some other models with the "Link to Windows" feature. You can sync your phone with your laptop and broadcast the connection. Otherwise, the QR code will simply display the password in text format after scanning it with another person's phone camera or using a scanner app on the laptop itself.
Resetting your router as a last resort
If none of the above methods help and you can't remember your router's admin panel password, the last resort is a complete factory reset. This will erase all current configurations, including the network name, Wi-Fi password, and administrator password.
To perform a reset, find a small hole with the inscription on the router body Reset or RestoreYou'll need a thin object, such as a straightened paperclip or toothpick. Press the button inside the hole and hold it for about 10-15 seconds until the router's lights flash simultaneously.
After rebooting, the router will return to its out-of-the-box state. You can connect to an open network (or a network with the password indicated on the sticker) and set up your internet connection again. Be prepared to re-enter your ISP login and password (PPPoE, L2TP, etc.) if they weren't assigned automatically.
⚠️ Please note: Resetting the settings will temporarily disable internet access for all connected devices. Make sure you have your ISP contract handy to restore your WAN port settings.
This method guarantees access, but it requires time to reconfigure the entire home network. Use it only if other options have been exhausted.
Specialized software for network management
There are password managers and wireless connection management utilities that can make this task easier. Some of them, such as WirelessKeyView from NirSoft, specially designed to recover lost keys from the Windows registry.
These programs work by reading the same system files as the command line, but present the information in a more convenient graphical interface. You don't need to remember command syntax. netshJust launch the utility, and it will store all saved profiles and passwords.
However, be extremely careful when downloading such software. Antivirus programs often classify password recovery programs as potentially unwanted software (RiskWare), as they use the same methods as hacker tools. Download such programs only from the developers' official websites.
Using third-party software makes sense if you need to save a list of passwords for multiple networks to a text file for backup. For a one-time connection, it's easier to use Windows' built-in tools.
Frequently Asked Questions (FAQ)
Is it possible to connect to a neighbor's Wi-Fi if you only know the network name?
No, it's impossible to connect to a WPA2/WPA3 secured network without a password (security key). Modern encryption protocols reliably protect data transmission. The only legal way is to ask the owner for the password or use guest access, if enabled.
Why does the command line say "Element not found"?
This means you entered the network profile name incorrectly. The name must match exactly, including spaces and capitalization. Use the command netsh wlan show profiles, copy the exact name and paste it into the key view command.
Does the WPS method work on all routers?
No. Many modern manufacturers (for example, ASUS and TP-Link in new firmware versions) disable WPS support due to vulnerabilities or require the use of a mobile app for initial setup, removing the physical button from the quick connect functionality.
Will the Windows password be saved after reinstalling the system?
No, a complete reinstallation of Windows (including disk formatting) will delete all saved Wi-Fi profiles and passwords. You'll need to re-enter the password or use one of the recovery methods via your router or another device.