It's common to need to connect a new device to a wireless network, but the password has long been forgotten or written down on a piece of paper that's been misplaced. Fortunately, the operating system Windows 10 It has a built-in encryption and key storage mechanism, allowing you to recover a forgotten password without resetting the router. This is especially important if at least one computer running this OS is already connected to the network.
There are several effective methods for extracting saved security keys, from simple graphical interfaces to advanced command-line utilities. Users Users can choose the method that's most convenient for them, whether it's the standard system settings menu or using the command line to obtain detailed technical information. The only requirement is administrator rights on the device accessing the data.
In this guide, we'll detail the steps to take for various scenarios, including when there's no current network connection but the device has previously successfully logged in. You'll learn how to secure your data and where exactly the operating system stores critical internet access information.
Finding a password through the graphical settings interface
The easiest and most accessible way for most users — This is using the standard wireless connection properties window. This method doesn't require entering complex commands and is suitable even for those who aren't confident in the technical nuances of the operation. WindowsIf your computer is currently connected to a network whose password you need to find out, follow the instructions below.
First, you need to open the classic Control Panel, as the new Settings menu often hides the option to display the password in plain text or requires additional steps. Press the key combination Win + R and enter the command ncpa.cpl, then press EnterA network connections window will open in front of you, where you need to find the active adapter. Wi-Fi.
⚠️ Attention: If you are using a laptop with two network adapters or virtual machines, make sure you select the physical wireless interface and not a virtual cable or Bluetooth dongle.
After opening the adapter properties, go to the tab Wireless network and press the button Wireless network propertiesIn the window that opens, switch to the tab SecurityThis is where the "Network Security Key" field is located, hidden by asterisks by default. Check the box next to it. Show entered characters, and the system will show the password you are looking for.
Using the Command Line to Extract Keys
For more experienced users or in situations where the graphical interface does not work correctly, using the command line is the ideal solution. CMDThis tool allows you to interact directly with the operating system's network stack and retrieve saved profiles. This method is especially useful if you need to find out the password for a network the computer has connected to in the past but is currently not connected to.
Launch the Command Prompt as administrator. To do this, right-click the Start button and select the appropriate option from the menu. First, you need to display a list of all saved WiFi network profiles. Enter the command netsh wlan show profiles and press EnterThe system will display a list of all networks for which keys have ever been saved on this device.
Find the name of the desired network in the list and use it to get detailed information. The command has the following syntax: netsh wlan show profile name="Network_Name" key=clear. Please note that the network name must be enclosed in quotation marks if it contains spaces. Parameter key=clear It is responsible for displaying the security key in clear text.
netsh wlan show profile name="HomeWiFi" key=clear
As a result of the command, scroll down to the output section Security settings. Line Key Content will contain the password you're looking for. This method works reliably on all versions. Windows 10 and Windows 11, regardless of interface updates.
☑️ Algorithm of actions via CMD
Restoring access via PowerShell
An alternative to the classic command line is a more powerful tool. PowerShellIt provides advanced capabilities for managing network configurations and is often used by system administrators. Although the syntax may seem more complex, the result is more structured, which is convenient for analyzing multiple stored connections.
Launch PowerShell with administrator privileges. To list all profiles, you can use the same command as in CMD, as netsh is a system utility. However, PowerShell allows you to automatically filter the output. You can use the command to output only the profile and key names in a convenient format, although the standard method via netsh remains the most universal and understandable for one-off operations.
If standard commands don't work, you can try a script that will output all passwords at once. However, using third-party scripts requires caution. It's safer to use built-in functions: Get-NetConnectionProfile will show the current network status, but passwords will still require access to netshThis confirms that even in modern shells, the basic mechanisms remain unchanged.
⚠️ Attention: When working in PowerShell, pay attention to the case of letters in command and parameter names. Syntax errors can cause the system to misunderstand your request or return an access denial error.
Viewing the password through the router's web interface
If none of the computer methods work, or you want to change the password to a more complex one, the only sure solution is to log in to the router settings. To do this, the device you're logging in from must be connected to the router via cable or WiFi. The login address is usually found on a sticker on the bottom of the device and often looks like this: 192.168.0.1 or 192.168.1.1.
By entering the IP address in your browser, you will be taken to the login page. Standard logins and passwords are often simple, such as admin/admin, but if you've changed them previously, you'll need to remember this information. After successfully logging in, you need to find the section responsible for the wireless network. It may be called Wireless, WLAN or Wi-Fi Settings.
Look for the subsection within the section Wireless Security or simply SecurityThat's where the field is located. Pre-Shared Key, Passphrase or PasswordHere you can not only see the current key, but also change the encryption type (recommended WPA2-PSK or WPA3) and the character combination itself. After saving the settings, the router may reboot, and all devices will need to be reconnected.
What should I do if I've changed my router password and forgotten it?
If you changed your router's admin panel password and forgot it, you can't recover it using standard methods. The only solution is to perform a factory reset (hard reset). To do this, with the router turned on, press and hold the Reset button (usually recessed into the router's housing) for 10-15 seconds. After this, the device will reset to the default login and password listed on the sticker, but you'll have to reconfigure all your internet settings.
Comparison of access recovery methods
The choice of a specific method depends on your current situation, your level of access to the device, and whether you have administrator rights. Below is a table to help you quickly determine which method will be most effective in your case. Each method has its own advantages and limitations.
| Method | Necessary rights | Network connection required | Complexity |
|---|---|---|---|
| Graphical interface | User | Yes (current connection) | Low |
| Command Prompt (CMD) | Administrator | No (profile is enough) | Average |
| Router web interface | Router admin | Yes (local connection) | Average |
| Third-party software | Administrator | No | High |
Using third party software such as WirelessKeyView or WiFi Password Decoder, is also possible, but carries certain risks. Such programs are often identified by antivirus software as potentially unwanted programs, as their functionality can be exploited by attackers. It is recommended to use only verified utilities from the developers' official websites.
Common mistakes and how to solve them
When recovering passwords, users often encounter error messages. One of the most common is "Access Denied" when attempting to run a command in CMD. This almost always means the command prompt is running as a standard user, not an administrator. The solution is simple: close the window and reopen it using the Start button's context menu.
Another problem occurs when the network name contains special characters or spaces and the command netsh cannot process the request correctly. In this case, it's critical to enclose the profile name in double quotes. If the name contains quotes, they must be escaped or single quotes must be used within double quotes, although this doesn't always work as expected on Windows.
⚠️ Attention: Router interfaces and Wi-Fi adapter driver versions are constantly updated. Menu locations and exact item names may differ from those described in the instructions. Always consult the documentation for your specific hardware model.
If the command runs but the key field is empty or contains zeros, the profile may be corrupted or access rights to the Windows key store may be restricted by group policies. In such cases, deleting the profile with the command netsh wlan delete profile name="Name" and reconnect by entering the correct password (if known from another device).
Is it possible to find the WiFi password on the Windows 10 lock screen?
No, this is not possible without authorization in the system. Accessing network settings and running commands as an administrator requires logging into a user account. This is a security measure to prevent data theft by unauthorized persons.
Where are WiFi passwords physically stored in Windows 10?
Passwords are stored in a secure section of the registry and in system configuration files accessible only by the WLAN AutoConfig system service and users with administrator rights. They are encrypted and tied to a specific user or system.
Is it safe to save WiFi passwords in Windows?
For home use, this is safe if the computer has a login password. However, on public computers or in offices with high employee turnover, it is recommended not to automatically save keys or to use guest networks with restricted access.
What should I do if the netsh command says "Group Policy does not allow access"?
This means the system administrator has disabled viewing or saving passwords via Group Policy. This is rare in a Home version of Windows. In a corporate environment, you'll need to contact your IT department to obtain the necessary permissions.
Is it possible to recover the password for a network I've never connected to from this PC?
No, Windows doesn't know the password for a network the device has never connected to. In this case, the password can only be found from another device that already has access to the network, or through the router settings if you have physical access to it.