Losing your wireless network password is a common situation faced by many users. You've bought a new laptop, invited guests over, or simply forgotten the password you entered a year ago. In the operating system Windows 10 Information about access keys is stored in encrypted form, but can be obtained using standard tools.
There are several effective methods for extracting this information without resorting to third-party software. We'll look at the built-in tools. operating system, which allow you to restore access safely and quickly. You won't need complex utilities or superuser rights if you follow the instructions.
Data recovery takes just a few minutes if you know which registry key or system folder to look for saved profiles. Below, we'll cover every available method in detail, from simply viewing network properties to using the command line.
Viewing your password through network and internet settings
The easiest and most accessible way for beginners is to use the graphical interface. Control panelsThis method doesn't require memorizing complex commands and is suitable for those who prefer visual interaction with the system. However, it only works if your device is currently connected to the desired network or has been connected previously.
First, you need to open the current connection status window. This can be done through the system tray or the settings menu. In the window that opens, click the button that allows you to view the wireless network properties, where the information you're looking for is stored.
- 🖱️ Right-click on the Wi-Fi icon in the system tray (near the clock) and select
Open Network & Internet Settings. - 🌐 Find the link in the window that opens
Network and Sharing Center, it is usually located in the "Related Options" section or at the very bottom of the window. - 📡 In the Control Center, click on the name of your active wireless network (in blue) to open the status window.
After opening the network status window, you will see a button Wireless network propertiesClicking on it will take you to a menu with tabs that store the technical connection parameters. We're interested in the tab Security.
On the Security tab, you'll see the "Network Security Key" field. By default, characters are hidden behind asterisks. To see them, check the "Show entered characters" box. You may be prompted to confirm administrator rights or enter your Windows account password.
⚠️ Attention: If the "Security" tab is grayed out or the "Properties" button is unavailable, this may indicate that the network profile is corrupted or your account does not have permission to view system settings. In this case, try the command line method.
Once the characters are displayed, you can copy or write them down. This is the most secure method for the current active session. However, if you need to find the password for a network the computer has connected to in the past but is not currently connected to, this method will not work without additional steps.
Using the Command Prompt to View Saved Profiles
Command line cmd — is a powerful administration tool that allows you to interact with network settings at a deeper level. It can display a list of all previously saved Wi-Fi networks and retrieve the password for any of them, even if you're not currently connected.
To use the command prompt, you'll need administrator privileges. This is necessary because the request concerns system security data. You can launch the console by searching in the Start menu and entering cmd and selecting "Run as administrator".
The first step is to get a list of all saved profiles. To do this, use the command:
netsh wlan show profiles
The system will return a list of all networks this computer has ever connected to. Find the name of the network you need in the list and remember its exact spelling.
Now that we know the profile name, we can request the security key to be displayed. To do this, use the following syntax, where "Network_Name" should be replaced with the name of your router:
netsh wlan show profile name="Network_Name" key=clear
In the command output, find the "Security settings" section. There will be a line called "Key Content," which contains the password in cleartext. This method is universal and works on all versions. Windows 10 And Windows 11.
☑️ Check before entering a command
Working with PowerShell for System Administrators
An alternative to the classic command line is the shell PowerShellIt provides more flexible options for scripting and system management. However, the Wi-Fi commands here often duplicate functionality. netsh, the PowerShell interface may be more familiar to experienced users.
Launch PowerShell as administrator. Unlike the regular console, you can use pipelines and filters here, but for our purposes, basic commands are sufficient. It's also a good idea to list your profiles first:
(Get-NetConnectionProfile).Name
However, to obtain the password itself, it is more convenient to use the built-in command netsh directly within PowerShell, since native Windows cmdlets require complex object manipulation to extract cleartext passwords.
You can create a simple script that will automatically display passwords for all networks. Paste the following code into the PowerShell window:
$profiles = (netsh wlan show profiles) | Select-String "\:(.+)$" | %{$name=$_.Matches.Groups[1].Value.Trim(); $_} | %{(netsh wlan show profile name="$name" key=clear)} | Select-String "Key Content\W+\:(.+)$" | %{$pass=$_.Matches.Groups[1].Value.Trim(); $_} | %{[PSCustomObject]@{ PROFILE_NAME=$name;PASSWORD=$pass }} | Format-Table -AutoSize
This script will automatically go through all saved profiles and output a table with network names and their corresponding passwords. the fastest way get access to the entire password database at once.
Using PowerShell is especially useful if you need to transfer information to another user in plain text or save a log. Be careful with saved logs containing passwords, as they grant full access to your network.
Why do netsh commands work in PowerShell?
PowerShell supports running Windows command-line commands. The netsh command is a system utility that runs independently of the shell, whether cmd.exe or PowerShell, so the syntax remains identical.
Comparison of access recovery methods
The method you choose depends on your situation and computer proficiency. A graphical interface is suitable for one-time situations when you need to quickly view the password for your current network. The command line and PowerShell are indispensable for system administrators or when you need to find the password for a network to which your computer is not currently connected.
Below is a table comparing the key characteristics of the methods discussed. It will help you choose the best option for your specific situation.
| Method | Complexity | Admin rights required | Works for legacy networks |
|---|---|---|---|
| Graphical Interface (Properties) | Low | Yes (for viewing) | No (only active or recent) |
| Command line (netsh) | Average | Yes | Yes |
| PowerShell script | High | Yes | Yes (massively) |
| Third-party utilities | Low | Yes | Yes |
It's important to keep in mind that third-party utilities, while convenient, can pose potential security risks. Using built-in tools Windows is always preferable from a data protection perspective.
If you plan to manage network connections frequently, it makes sense to learn basic commands. netshThey work reliably in all OS versions and are not dependent on interface updates.
Restoring access via a router
If none of the computer's software methods work (for example, passwords weren't saved or the system was reinstalled), physical access to the equipment remains. The Wi-Fi password can be found in the router's settings.
To do this, you need to connect to the router via cable or Wi-Fi (if the password is known to the other device), enter its IP address in the browser (usually 192.168.0.1 or 192.168.1.1) and log in. In the wireless network section (Wireless or Wi-Fi) the current security key will be indicated.
- 🔌 Connect your computer to the router via cable or Wi-Fi.
- 🌐 Open your browser and enter the default gateway address in the address bar.
- 🔑 Enter the router administrator login and password (often found on a sticker on the bottom of the device).
- 📶 Find the "Wireless Security" section and look at the "Password" or "Pre-Shared Key" field.
This method is advantageous because it displays the current password, regardless of what data is stored in Windows. If the router password has been changed but the old one is saved on the computer, the router will display the new, valid key.
⚠️ Attention: Router interfaces from different manufacturers (TP-Link, ASUS, D-Link, Keenetic) may vary. Look for tabs labeled "Wireless," "WLAN," "Wi-Fi," or "Wireless."
There's also often a sticker on the router housing with the factory network name and password. If you've never changed the security settings, the password on this sticker will be valid.
Security issues and data protection
Storing passwords in the operating system is a balancing act between convenience and security. Windows encrypts this data, but physical access to the device or administrative privileges make it possible to extract it. This means that anyone with access to your unlocked computer can discover your network password.
It is recommended to use complex passwords that are difficult to crack using brute force. WPA2/WPA3 Encryption is the security standard today. The older WEP protocol can be cracked in minutes and should not be used.
Changing Wi-Fi passwords regularly is a good practice, especially if you've been sharing your network with guests or suspect the key may have been compromised. After changing the password on your router, all devices will be required to enter the new key.
Remember that knowing your Wi-Fi password gives you access to all devices on your local network. An attacker could attempt to access shared folders, printers, or even inject malware. Therefore, securing your wireless network means protecting your entire digital perimeter.
Is it possible to find out the password if the computer has never connected to this network?
No, the Windows operating system doesn't store passwords for networks the device has never connected to or for which data hasn't been imported. In this case, the only solution is to use the router sticker, access the router settings from another device, or reset the router to factory settings.
Why does the netsh command give an "Element not found" error?
This is most often caused by a typo in the profile name. The name is case-sensitive and contains spaces. Try enclosing the network name in double quotes, for example: name="My Wi-Fi"Also, make sure you run the command prompt as administrator.
Is it safe to use third-party password recovery programs?
Using proven utilities from reputable developers (such as WirelessKeyView by NirSoft) is relatively safe, but requires caution. Antivirus programs may label them as "HackTools" because they operate similarly to stealer viruses. It's better to use built-in Windows tools.
What to do if you forgot your Windows administrator password?
Without an administrator password or superuser rights, you won't be able to access saved Wi-Fi passwords via the command line or network properties. Windows Security blocks standard users from reading security keys.