It's quite common to need to connect a new device to an existing wireless network but have lost or forgotten the password. Fortunately, the operating system Windows By default, it saves access keys for all networks your computer has ever connected to. This means you can recover a forgotten password directly from the system, without accessing the router or other devices.
In this guide, we'll cover all the current data recovery methods, from standard interface settings to using the command line for advanced users. You'll learn how to access network profiles and extract the necessary information from there in a matter of minutes, even if you do not have administrator rights on the router.
It's worth noting that the security of your data directly depends on the complexity of the stored key. However, if you own the device, access recovery is a standard OS feature. Let's walk through the various methods step by step, starting with the simplest visual method.
Using the Windows 10 and 11 GUI
The easiest and most accessible way to retrieve a saved key is to use the standard operating system settings. This method doesn't require knowledge of complex commands and is suitable for most users who need to quickly solve a problem. In the latest versions Windows 10 And Windows 11 The interface may differ slightly, but the logic of actions remains the same.
First, you need to open the Network Control Panel. Press the key combination Win + R and enter the command ncpa.cpl, then press Enter. The "Network Connections" window will open, displaying all available adapters. Find the icon for your Wi-Fi adapter, which is usually labeled "Wireless Network" or "Wi-Fi", and right-click on it.
In the menu that opens, select "Status." A small window will appear with information about the connection, data transfer rate, and session duration. The "Wireless Network Properties" button at the bottom of the window is of interest. Clicking it will take you to the security settings for that specific connection.
In the new window, go to the "Security" tab. You'll see the "Network Security Key" field, where the characters are hidden behind asterisks or periods. To see the real password, check the "Show entered characters" box. The hidden text will immediately become visible, allowing you to copy or write it down.
⚠️ Important: If the "Security" tab is grayed out or the "Properties" button is unavailable, make sure you are an administrator on this computer. Without the appropriate permissions, the system may block viewing sensitive information.
☑️ Checking access via the interface
It's important to understand that this method only works if your computer is currently connected to the network or has previously saved this profile and not deleted it. If the profile has been deleted, the system will not be able to display data through the graphical interface, and you will have to use other methods.
Password recovery via the CMD command line
For those who prefer faster and more reliable methods, or in cases where the graphical interface does not work correctly, the command line is ideal. The utility netsh (Network Shell) is a powerful network management tool in Windows and allows you to interact with saved profiles at a deep level.
To launch the command prompt with administrator privileges, right-click the "Start" button and select "Windows PowerShell (Administrator)" or "Command Prompt (Administrator)." In the window that opens, first get a list of all saved networks. Enter the command:
netsh wlan show profiles
The system will display a list of all profiles ever used on this PC. Find the name of your network in the list (in the "User Profiles" column). Copy the exact network name, as you will need it in the next step. Please note letter case and spaces.
Now, to see the password for a specific network, use the following command, where you substitute the name of your Wi-Fi network for "Network_Name":
netsh wlan show profile name="Network_Name" key=clear
After running the command, scroll down to the "Security settings" section. The "Key Content" line will display the password you're looking for in clear text. This method is universal and works even if you're not currently connected to the network, as long as you have a saved profile.
What to do if the command returns an error?
If the system reports "Network adapter not found" or "Access denied," make sure you're running the console as an administrator. Also, check if the "WLAN AutoConfig Manager" service is disabled in the Windows services list (services.msc).
Using the command line provides more detailed information, including the encryption type (WPA2, WPA3) and authentication type. This can be useful when diagnosing connection issues and trying to figure out why a device can't connect to the router.
Using PowerShell to retrieve data
An alternative to the classic CMD is the shell PowerShell, which offers more flexible scripting and data processing capabilities. While basic netsh commands work here, PowerShell allows you to output information in a more structured format or save it to a file.
Launch PowerShell as administrator. The basic password prompt syntax is the same as CMD, but you can use variables to simplify working with long network names. Enter the following command to display all profiles:
netsh wlan show profile
To get the password of a specific network, use the same syntax key=clearHowever, PowerShell allows you to immediately filter the output to find the line containing the key. For example, you can use the find command, but the easiest way is to simply carefully examine the output after running the standard show profile command.
The advantage of PowerShell is its automation capabilities. If you need to export passwords from all saved networks to a text file, you can write a simple script. This is especially useful for system administrators setting up workstations.
Keep in mind that PowerShell, like CMD, requires administrator privileges to run network commands that affect security. Without elevated privileges, you'll receive an access violation error.
Third-party password recovery utilities
If you don't want to mess around with the command line, there are specialized programs that automate the process of extracting saved keys. One of the most popular and time-tested tools is the utility WirelessKeyView from NirSoft.
This program requires no installation (it's portable), making it convenient to use on other computers or flash drives. Once launched, it automatically scans the Windows storage and displays a list of all networks, their SSIDs, encryption types, and, most importantly, their passwords in plain text.
- 🔍 WirelessKeyView — a free, lightweight utility that displays all saved keys in one window.
- 📡 WiFi Password Decoder — supports password recovery not only for Wi-Fi, but also for mobile hotspots.
- 🔑 Magical Jelly Bean WiFi Password Revealer — allows you not only to view, but also to copy passwords to the clipboard with one click.
When using third-party software, it's important to exercise caution. Download programs only from the developers' official websites to avoid introducing malware. Antivirus programs may consider such utilities "hack tools" because they access protected system data.
⚠️ Warning: Antivirus programs may block password recovery tools, classifying them as potentially unwanted. Before running them, temporarily disable protection or add the program to the exceptions list if you are sure of the file's source.
Comparison table of recovery methods
To help you choose the right method, we've prepared a comparison chart. It will help you evaluate the pros and cons of each method depending on your situation and level of preparation.
| Method | Complexity | Do you need internet? | Admin rights |
|---|---|---|---|
| Windows Settings (GUI) | Low | Not needed (for viewing) | Desirable |
| Command Prompt (CMD) | Average | Not needed | Necessarily |
| PowerShell | High | Not needed | Necessarily |
| Third-party utilities | Low | Required (for downloading) | Necessarily |
As the table shows, the graphical interface is the simplest but less flexible. The command line requires minimal training but offers complete control. The choice depends on your preferences and current computer conditions.
What to do if the password is not saved or hidden
Sometimes users encounter a situation where Windows doesn't save their password or refuses to display it even with administrator rights. This may be due to group security policies set up in the corporate environment or registry errors.
In organizations, system administrators often prohibit viewing security keys to protect the corporate network. In this case, even knowing the commands will prevent you from viewing the password. The only solution is to contact the IT department or use a device with the password already entered (such as a smartphone) to view the QR code.
It's also worth checking your Wi-Fi adapter's power settings. Sometimes the system turns off the adapter to save power, which can lead to loss of security context. Go to Device Manager, find your adapter, open its properties, and in the "Power Management" tab, uncheck the box next to Allow power off.
⚠️ Note: Settings interfaces and menu item names may vary depending on your Windows version (Home, Pro, Enterprise) and installed security updates. If you don't see this option, check that your network adapter drivers are up-to-date.
If none of the software methods work, the only option is to physically access the router. Most devices have a sticker on the back with the factory password. If the password has been changed, you can reset the router using the reset button. Reset (holding for 10-15 seconds), but this will break the connection of all connected devices.
Frequently Asked Questions (FAQ)
Is it possible to find out a Wi-Fi password if the computer has never connected to this network?
No, the operating system only stores previously entered and saved passwords. If the device has never connected to the network, the system has no information about the key. In this case, the only solution is to know the password from another device or reset the router.
Are password recovery programs safe to use?
Using trusted utilities from reputable developers (like NirSoft) is safe. However, downloading questionable software from unknown sites can lead to computer infection. Always scan files with an antivirus before running them.
Why does the netsh command give an "Access Denied" error?
This error means the command prompt is running as a standard user, not an administrator. Running network commands that affect security requires running the command prompt as an administrator.
Where are Wi-Fi passwords physically stored in Windows?
Passwords are stored in a secure section of the registry and in system configuration files in encrypted form. Direct editing of these files is impossible without special decryption keys, so built-in OS tools are used to display them.
Is it possible to recover a password after reinstalling Windows?
No, a clean installation of Windows deletes all local data, including saved network profiles and passwords. You can only restore them if you've previously backed up your system or synced your settings via a Microsoft account (this feature doesn't always work).