Forgot your home Wi-Fi password, but your computer is connected to the router via cable? It's a familiar situation: your smartphone or laptop is asking you to re-enter the security key, and the sticker on the router has long since worn off or disappeared. Fortunately, Windows 10 stores all saved wireless network passwords. - even if you are currently using a wired connection (Ethernet). The main thing is to know where and how to extract them.
In this article we will look at 5 proven methods, which will help you recover your Wi-Fi password without accessing the router's web interface. From standard system tools to specialized utilities, choose the method that's right for you. And if you're worried about breaking something, don't worry: all the steps described are covered. do not require administrator rights (with one exception) and do not affect the operation of the network.
Spoiler: the fastest way is to use command line (section 2) But if you prefer a graphical interface, take a look at Windows Settings or utility WirelessKeyView (Sections 3 and 5). For advanced users, there's even a method for exporting passwords to a file—useful if you need to transfer settings to another PC.
1. Why does Windows 10 "remember" Wi-Fi passwords even when connected via a wired connection?
Many users mistakenly believe that if the computer is connected to the router via a cable (Ethernet), then wireless network data is erased from the system. In fact, this is not the case. Windows 10 saves all Wi-Fi network passwords, to which the PC has ever connected - regardless of the current connection type.
The thing is that the operating system stores security keys in a special credential storage (Windows Credential Manager). This data remains in the system until you manually remove the network from the list or reset the network settings. Even if you haven't used Wi-Fi in a while, you can still recover the password—provided the connection was successfully established previously.
It is important to understand the difference between the two types of password storage:
- 🔑 Windows Local Storage — Passwords are stored encrypted in the system registry. They can be retrieved without access to the router.
- 📡 Router settings — the password is stored in the device's web interface. To view it, you need to know the login details for the admin panel (usually
admin/adminor indicated on the router sticker).
In this article, we will focus on the first option - extracting the password from Windows 10 local storageThis is convenient when:
- 🖥️ You only have access to a PC connected via cable.
- 🔒 You don't know the login/password for the router's web interface.
- ⚡ Need to quickly connect a new device to Wi-Fi without resetting the settings.
2. Method 1: Viewing the password via the command line (the fastest method)
This method does not require installation of additional programs and works on all versions. Windows 10You will only need command line (cmd) with administrator rights. The entire process will take no more than a minute.
Follow the step-by-step instructions:
- Open command prompt as administratorTo do this, click
Win + Xand select "Command Prompt (Admin)" or "Windows PowerShell (Admin)". - Enter the command to view a list of all saved Wi-Fi networks:
netsh wlan show profilesIn the results, find the name of your network (
Profile name). - To see the password for a specific network, run:
netsh wlan show profile name="NETWORK_NAME" key=clearReplace
NETWORK_NAMEto the name of your Wi-Fi (for example,TP-Link_1234). - In the block
Security parametersfind the lineKey content- this is your password.
Example command output (password highlighted):
Security settings:
Authentication type: WPA2-Personal
Encryption type: CCMP
Key content: 12345678
Run CMD as administrator|Make sure the network name is entered correctly|Check the "Security Settings" section|Copy the password to a safe place-->
⚠️ Attention: If the command output displays asterisks () or a message about the lack of rights, means:
- You forgot to run
cmdon behalf of the administrator.- The password for this network is not saved in the system (it is possible that the connection was made through WPS or guest access).
Try alternative methods from the following sections.
3. Method 2: View the password in Windows Settings (without the command line)
If working with cmd seems complicated, you can use the graphical interface. Windows 10 There is a built-in tool for viewing saved passwords, although it is a bit hidden.
Step-by-step instructions:
- Open Windows Settings (
Win + I) and go to the section "Network and Internet». - Select the "Wi-Fi» → «Managing known networks».
- Find your network in the list and click on it → "Properties».
- Scroll down to the "Security settings: Show entered characters" The password will be displayed in the "Network security key».
If the "Manage known networks" item is missing or the network is not displayed in the list, then:
- 🔌 You have never connected to this Wi-Fi from this PC.
- 🗑️ Network data has been deleted (for example, after resetting network settings).
- 🛡️ You don't have administrator rights (confirmation required) UAC).
What should I do if the "Wi-Fi" section is missing from Settings?
This means the wireless network adapter is disabled in the system. To enable it:
- Click
Win + X→ "Device Manager". - Expand the Network Adapters section and find the device named Wireless, Wi-Fi or 802.11.
- Right-click → "Enable device".
After this, the Wi-Fi section will appear in Settings.
4. Method 3: Export all Wi-Fi passwords to a file (for backup)
If you need to find out not only one password, but also save all saved networks (for example, to transfer to another PC), you can export them to a text file. This method requires administrator rights and PowerShell.
Instructions:
- Launch PowerShell as administrator (
Win + X→ “Windows PowerShell (Administrator)”. - Run the command to export all Wi-Fi profiles:
This command will automatically extract the names of all networks and their passwords, displaying them in a table.(netsh wlan show profiles) | Select-String "\:(.+)$" | %{$name=$_.Matches.Groups[1].Value.Trim(); $_} | %{(netsh wlan show profile name="$name" key=clear)} | Select-String "Key contents\W+\:(.+)$" | %{$pass=$_.Matches.Groups[1].Value.Trim(); $_} | %{[PSCustomObject]@{PROFILE_NAME=$name;PASSWORD=$pass}} | Format-Table -AutoSize - To save the result to a file, add the following to the end of the command:
| Out-File -FilePath "$env:USERPROFILE\Desktop\WiFi_Passwords.txt" -Encoding UTF8File
WiFi_Passwords.txtwill appear on the desktop.
Example of exported file content:
| Network name (SSID) | Password |
|---|---|
| TP-Link_Home | qwerty12345 |
| KEENETIC-123 | 1234567890 |
| DIRECT-xx-HP OfficeJet | 76543210 |
| Starlink | password123 |
⚠️ Attention: The password file contains confidential information. Store it in a secure location and delete it after use if it is not needed. Do not transmit the file over unsecured channels (for example, unencrypted email).
5. Method 4: Using third-party utilities (WirelessKeyView)
If the built-in Windows tools seem inconvenient, you can use a free utility WirelessKeyView from the developer NirSoftIt doesn't require installation and displays all saved passwords in a convenient table format.
How to use:
- Download WirelessKeyView With NirSoft official website (choose the version for 32-bit or 64-bit system).
- Unzip the archive and run the file
WirelessKeyView.exe(administrator rights are not required). - In the main program window, you'll see a table with all saved networks. The password will be displayed in the column. Key (Ascii).
- To copy the password, right-click on the line with the desired network and select “Copy Key”.
Advantages WirelessKeyView:
- 🔍 Shows passwords even for networks you haven't connected to in a long time.
- 📤 Allows you to export data to
HTML,XMLorTXT. - 🛡️ Does not require an internet connection (works offline).
⚠️ Attention: Some antiviruses may block WirelessKeyView, because the program reads data from the system registry. This false positive — the utility is virus-free. If necessary, add it to your antivirus exclusions or use Windows' built-in methods.
6. Method 5: View the password in the Windows registry (for advanced users)
This method is suitable for those who are not afraid to work with registry editorWi-Fi passwords are stored encrypted, but they can be decrypted using built-in tools.
Instructions:
- Click
Win + R, enterregeditand pressEnter. - Follow the path:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Wlansvc\Interfaces\{GUID}\ProfilesInstead of
{GUID}Unique identifiers of network interfaces will be substituted. - In each folder
Profilesfind the parameterProfileName- it contains the name of the Wi-Fi network. - To decrypt the password, export the registry key (right-click → “Export”) and use the utility WirelessKeyView or a script on PowerShell.
Example of registry structure with passwords:
| Parameter | Meaning | Description |
|---|---|---|
| ProfileName | MyWiFi_5G | Network name (SSID) |
| KeyMaterial | 01000000D08C9DDF... | Encrypted password (hex) |
| ConnectionMode | auto | Connection mode |
| AuthEncryption | WPA2-PSK-CCMP | Encryption type |
⚠️ Warning: Incorrectly editing the registry can cause system failures. If you are unsure of what you are doing, use alternative methods (for example, netsh or WirelessKeyView).
7. What to do if none of the methods worked
If none of the above methods helped to extract the password, the problem may be due to one of the following factors:
- 🔌 The PC has never connected to this Wi-Fi over the air. Check if the network is in the list
netsh wlan show profilesIf not, the password is not saved in the system. - 🔄 Network settings have been reset. After the commands
netsh winsock resetornetsh int ip resetWi-Fi data may be deleted. - 🛡️ The password is stored only in the router. In this case, there are two options left:
- Connect to the router via cable and go to the web interface (usually at the address
192.168.0.1or192.168.1.1). - Reset the router to factory settings (button
Reseton the back panel) and configure it again.
- Connect to the router via cable and go to the web interface (usually at the address
FAQ: Frequently Asked Questions about Wi-Fi Password Recovery
Is it possible to find out the Wi-Fi password if the PC is only connected via cable and has never been connected to the same network over the air?
No. Windows only saves passwords for networks that you have connected to wirelessly at least once. If the connection was always through Ethernet, there's no Wi-Fi data in the system. In this case, the only option left is to access the router settings or reset it.
Why are asterisks displayed instead of a password in the command line?)?
This means that:
- You forgot to run
cmdas administrator. - Password for this network not saved (for example, the connection was through WPS or guest access).
- The network uses pre-shared key (Pre-Shared Key), which is not displayed by standard means.
Try alternative methods (eg. WirelessKeyView).
Is it safe to use third-party programs like WirelessKeyView?
Utilities from NirSoft (including WirelessKeyView) are considered safe, but:
- Download them only from the official website (
nirsoft.net). - Before running, check the file for VirusTotal.
- Do not use programs on work PCs containing confidential data (risk of false antivirus alarms).
For maximum security, use Windows' built-in tools (netsh or "Parameters").
How to transfer Wi-Fi passwords to another computer?
There are two ways:
- Export via PowerShell (Section 4 of this article). Save the file
WiFi_Passwords.txtand transfer it to another PC. - Manual inputCopy the password using any of the methods described and enter it manually on the new device.
⚠️ Important: The target PC must be running the same version of Windows (or newer), otherwise profile compatibility issues may occur.
Is it possible to find out my neighbor's Wi-Fi password?
No, it's impossible. (if you haven't connected to its network before). All the methods described only work with saved profiles On your PC. Someone else's Wi-Fi without the owner's permission is:
- 🚫 Violation of the law (Article 272 of the Criminal Code of the Russian Federation - unauthorized access to computer information).
- 🔒 Security risk: Open networks may contain malicious nodes.
If you need access, ask the network owner for the password.