It's quite common to need to connect a new device to an existing wireless network but forget or lose the password. Fortunately, if at least one computer is already connected to the network via a cable or adapter, recovering the available data is easy. The Windows operating system stores the security keys of all networks the user has ever connected to in a special, secure vault.
There are several proven ways to extract this information, ranging from the standard GUI to using the command line for deeper analysis. Local area network It often acts as an intermediary, allowing not only file sharing but also connection management. In this article, we'll detail the steps for different operating system versions.
Before we begin any technical manipulations, it's important to understand that most actions require administrator privileges. This is a standard security measure that prevents unauthorized access to critical system settings. We'll cover both simple methods for beginners and advanced tools for experienced users.
Using the Windows GUI to view the key
The simplest and most accessible method, which doesn't require installing additional software or knowing complex commands, relies on the standard operating system settings. If your computer is connected to the router via a cable or WiFi adapter, the system already knows the necessary key. To get started, open the Start menu and go to Settings, then the "Network and Internet" category.
In the window that opens, find the "Network and Sharing Center" link or use the quick access from the taskbar by right-clicking the network icon. A connection map will open, where you should select your active wireless connection. It's usually marked with your router's name or SSID.
After the connection status window opens, click "Wireless Network Properties." In the new dialog box, go to the "Security" tab. This is where the information you're looking for is stored, hidden by default as black dots or asterisks.
- 🔍 Find the "Network Security Key" field and check the box next to "Show entered characters."
- 🔐 The system may ask you to confirm administrator rights via a UAC pop-up window.
- 📝 Copy the password that appears and save it in a safe place.
⚠️ Attention: If the "Show characters as you type" option is grayed out, it means your current account doesn't have administrator rights. You'll need to log in with an account with full rights or ask an administrator to perform this action.
It's important to note that this method only works if the computer has previously successfully connected to this network. If you're trying to find the password for a network the computer has never connected to, this method won't work. In this case, you'll need access to the router itself.
Obtaining data via the command line (CMD)
For users who prefer a text-based interface or are limited by the graphical shell, the console is the ideal solution. The Windows command line provides powerful tools for managing network profiles. This method is especially useful when you need to quickly access information without clicking through menus.
To launch the console, press the key combination Win + R, enter cmd and press Enter. To avoid permissions issues, it's best to run the command prompt as an administrator. You can do this by finding "Command Prompt" in the Start menu, right-clicking, and selecting the appropriate option.
The first step is to get a list of all saved WiFi network profiles. To do this, enter the command netsh wlan show profilesIn the list that appears, find your network name (SSID). Next, to view the details of a specific profile, including the password, use the command with parameters.
netsh wlan show profile name="Network_Name" key=clear
In the command output, find the "Security Settings" section. The "Key Content" line will contain the password you're looking for in cleartext. This method is universal and works on all modern versions of Windows, starting with Windows 7.
- 📡 Team
netshAllows you to manage a variety of network parameters, not just WiFi. - 💾 Profile data is stored in the system registry and is available even after a reboot.
- ⚙️ The method works regardless of the encryption type (WPA2, WPA3), as long as the profile is saved.
Accessing router settings via a local network
If none of your computers remember the password, or you need to change security settings, your only option is to log in to the router's web interface. To do this, you need to know the default gateway IP address, which is usually the router's own address on the local network.
You can find out the gateway address through the command line by entering the command ipconfigFind the "Default Gateway" line in the section for your adapter. These are usually addresses like 192.168.0.1 or 192.168.1.1Enter this address into the address bar of any browser.
After the login page loads, you'll need to enter your router administrator username and password. This information is often found on a sticker on the bottom of the device. If you've changed it before and forgot it, you may need to perform a factory reset.
| 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 |
After successful authorization, go to the Wireless or WiFi section. There, you can view your current password and set a new, more complex one. Don't forget to save your changes by clicking "Apply" or "Save."
⚠️ Attention: Router interfaces can vary greatly from manufacturer to manufacturer. Menus may have different names, such as "Wireless," "WLAN," or "Wi-Fi Network." Look for sections related to security.
☑️ Checking access to the router
Analyzing saved profiles via PowerShell
PowerShell is a more powerful alternative to the classic command line, offering advanced features for system administrators. While CMD is sufficient for simple password viewing, PowerShell allows you to automate the process or export the data in a more convenient format.
Run PowerShell as administrator. To list all profiles, use a similar command. netsh wlan show profilesHowever, PowerShell allows you to filter output and process data more flexibly. You can use scripts to automatically extract the keys of all saved networks.
One of PowerShell's features is its ability to work with objects. You can create a script that will iterate through all profiles and output their names and passwords to a text file. This is especially useful when migrating to a new computer or setting up office equipment.
netsh wlan show profiles | Select-String"\s+(2)\s+" | % { $name=$_.Matches.Groups[2].Value; netsh wlan show profile name="$name" key=clear | Select-String"Key Content|WPA" | % { $line=$_ } }
This method requires caution when entering commands, as PowerShell syntax is case-sensitive. An error in the script may prevent the command from executing, but it won't cause any damage to the system.
- 🚀 PowerShell allows you to create complex scripts for network management.
- 📂 Ability to export data in CSV or TXT format for archiving.
- 🛡️ Requires running with administrator rights to read keys.
It's worth noting that in the latest versions of Windows 10 and 11, security policies may restrict the execution of some PowerShell scripts by default. Changing the script execution policy may be necessary, although this is rarely necessary for one-off commands.
Why is PowerShell better than CMD?
PowerShell works with objects, not just text. This allows for more efficient data transfer between commands, although for simple tasks the difference is barely noticeable.
Specialized software for password recovery
For those who don't want to wade through the command line or delve into Windows settings, there are specialized tools. One of the most popular and reliable is WirelessKeyView from NirSoft. It's free, requires no installation, and instantly displays all saved keys.
Once launched, the utility scans the system storage and displays a list of networks in a table. You'll see the network name (SSID), the key in HEX format, and in text format. The program also displays the authentication type and connection status.
Another option is to use password managers such as Wifi Password Decryptor or built-in antivirus features (for example, Kaspersky Password Manager). However, many antivirus programs may consider such utilities as potentially unwanted programs, as they access sensitive data.
⚠️ Attention: Download such utilities only from the developers' official websites. Files from untrusted sources may contain viruses or Trojans disguised as useful tools.
Using third-party software is convenient, but it carries certain risks. You're trusting the program with access to all your network keys. If you work in a corporate environment, installing such software may be prohibited by information security policies.
What to do if none of the methods helped
Sometimes, the computer forgets the password, and access to the router is impossible (the admin password is forgotten, or the sticker is worn off). In this case, the last, radical, but effective method is to reset the router to factory settings. There's a small reset button on the device, usually recessed into the housing.
To reset the router, turn it on, locate the reset hole, and press it with a paperclip for 10-15 seconds until the indicators blink. After this, the device will reboot with factory settings. The WiFi network will be open or will have the password indicated on the sticker.
After the reset, you'll need to reconfigure your internet connection (PPPoE, L2TP, or dynamic IP) if your provider requires authentication. Therefore, before resetting, make sure you have your contract with your provider or the necessary setup information.
- 🔄 Resetting deletes all settings, including static IP and DNS.
- 📡 The WiFi network will return to its out-of-the-box state.
- 🔌 Do not unplug the router during the reset process.
This method guarantees access, but requires time to reconfigure. If you have a complex network configuration with port forwarding and MAC address filtering, recovery will take longer.
Is it possible to recover a password without resetting it?
If you have a rooted Android device that has previously connected to this network, you can find the password in the wpa_supplicant.conf system file.
Frequently Asked Questions (FAQ)
Is it possible to find out the WiFi password if I'm not connected to the network?
No, if the computer has never connected to this network and hasn't saved a profile, it's impossible to find the password using standard Windows tools. You'll need physical access to the router or another device that already knows the password.
Where are WiFi passwords stored in Windows 10 and 11?
Passwords are stored in a secure system credential store. Configuration files are located at C:\ProgramData\Microsoft\Wlansvc\Profiles\Interfaces, but they are encrypted and cannot be read in a regular text editor without decryption keys.
Is it safe to save a password in Windows?
Yes, Windows uses strong encryption to store keys. However, if an attacker gains physical access to your computer while it's running and has administrator privileges, they can extract these passwords.
Why does netsh command give an error "element not found"?
You most likely misspelled the profile name. The name must match exactly, including spaces and capitalization. Use the command netsh wlan show profilesto copy the exact network name.
Is it possible to view the password for the guest network?
Guest networks often have a separate password, which may not be saved in your main Windows profiles if you connected through a temporary guest portal. In this case, you'll need to ask the network owner for the password or look it up in your router settings.