The situation of needing to connect a new device to a wireless network but having forgotten or lost the password is familiar to many PC users. Fortunately, the operating system Windows 10 Stores data about previously connected networks in encrypted form, and with administrator rights, it can be retrieved. This eliminates the need to reset the router or contact the provider's technical support, which is especially important when you urgently need internet access.
There are several proven methods for restoring access, from using built-in graphical interfaces to using the command line for advanced users. A key condition for a successful recovery is that the computer must have previously successfully connected to the access point. In this article, we'll detail the steps you can take to quickly recover forgotten credentials without using complex software.
Before you begin any technical manipulations, make sure you have physical access to a device that's already authorized on the network. This could be your desktop computer or laptop, which automatically connects to Wi-Fi immediately after being turned on. Having such a device handy simplifies the process considerably, as the system already has the necessary encryption keys.
Using the Windows 10 GUI
The easiest and safest way to find your security key is to use the operating system's standard network connection menu. This method doesn't require complex commands and is suitable for most users who prefer a visual interface. To begin, open the Start menu and go to Settings, or simply right-click the network icon in the system tray.
In the window that opens, select the option Open "Network and Internet Settings", then find the link Network and Sharing Center, which is usually located at the bottom of the window or in the "Status" section. Here you'll see your active connection, with a link to your wireless network next to its name. Click on the network name to open the wireless connection status window.
In the new dialog box, click the button Wireless network propertiesIn the window that opens, go to the tab SecurityThis is where the information you're looking for is stored. By default, the "Network Security Key" field is hidden with asterisks to protect it from prying eyes. To see the symbols, check the box next to the item. Show entered characters.
⚠️ Attention: If the "Security" tab is missing or the entry field is grayed out, this may mean your account doesn't have administrator rights on this computer. In this case, you'll need to log in as the root user or use the other methods described below.
Once the characters are displayed, you can copy them or rewrite them manually. Be careful when entering them on other devices: letter case is important, and extra spaces may cause a connection error. This method works reliably on all current builds of Windows 10 and 11, providing quick access to data without the risk of damaging system files.
Finding a password via the command line (CMD)
For users who prefer a text-based interface or don't have access to graphical settings, the command line is a great solution. This tool provides deep access to network configuration and lets you manage Wi-Fi profiles. To launch the console, press the following key combination: Win + R, enter cmd and press Enter, preferably running as administrator for full access to functions.
The first step is to get a list of all saved profiles on your computer. Enter the command netsh wlan show profiles and press Enter. The system will display a list of all networks this PC has ever connected to. Find the required name (SSID) in the list and remember its exact spelling, as you'll need it in the next step.
Now that you know the exact profile name, enter the following command to display the connection details, including the security key:
netsh wlan show profile name="Your_Network_Name" key=clear
In the command output, find the section Security parameters (Security settings). Line Key content (Key Content) will contain the password you're searching for in cleartext. If you see an error message or a blank value instead of a password, check the spelling of the profile name, including spaces and special characters.
What to do if the command doesn't work?
If the system displays "Group Policy does not allow...," this indicates a restriction from the domain administrator (often on corporate networks). On home networks, this error is rare and may indicate corruption of the network's system files.
Viewing the key via PowerShell
A more powerful alternative to the classic command line is PowerShell. It allows you to not only view but also export network configurations in readable XML format, which is convenient for analyzing or transferring settings to another computer. Launch PowerShell as an administrator by searching for it in the Start menu and selecting the appropriate option.
To get a list of profiles use the command netsh wlan show profiles, similar to the one used in CMD. However, to extract the password, we can use a more specific query that will immediately filter out unnecessary information. Enter the command:
netsh wlan show profile name="Network_Name" key=clear | findstr"Key"
Using the operator findstr This command outputs only the key string, ignoring other technical details of the profile. This is especially useful if you're working with large amounts of data or using scripts for automation. Please note that the keyword may differ in Russian-language versions of Windows, so use autocomplete or type the command carefully.
- 🔹 Advantage: PowerShell provides more flexible output filtering options than CMD.
- 🔹 Compatibility: Netsh commands work equally well in both CMD and PowerShell.
- 🔹 Safety: The command history is saved, so it is recommended to clear the history after work if you are using a shared computer.
If you plan to use this method frequently, you can create a simple script (.ps1) that will prompt you for the network name and immediately provide the password, saving you time in the future.
Using third-party utilities
If built-in Windows tools are unavailable or cause difficulties for some reason, specialized programs can help. One of the most popular and time-tested tools is the utility WirelessKeyView from NirSoft. It requires no installation, is portable, and can extract keys for all saved Wi-Fi profiles with one click.
After launching the program (requires running as administrator), you'll see a table listing all networks. We're interested in the columns SSID (network name) and Key (Ascii) (The key is in text format). The program also displays the encryption type and the last connection date, which helps identify the desired profile if there are many.
| Name of the utility | Type of distribution | Functional | Complexity |
|---|---|---|---|
| WirelessKeyView | Freeware | Viewing and exporting keys | Low |
| Wifi Password Decryptor | Freeware/Pro | Recovery and copying | Low |
| Magical Jelly Bean | Freeware | Managing Wi-Fi profiles | Average |
When using third-party software, there's always a risk of false antivirus alerts, as such programs access sensitive system data. Download utilities only from the developers' official websites to avoid malicious code. After use, we recommend deleting downloaded files or storing them in a secure location.
☑️ Utility security check
Login to router settings
If the computer isn't connected to the network or none of the software methods work, the only option left is the hardware one—the router's settings. To do this, you need to know the IP address of the default gateway (usually 192.168.0.1 or 192.168.1.1) and login credentials for the admin panel. This information is often found on a sticker on the bottom of the device.
Connect your computer to the router via a LAN cable or Wi-Fi (if available), open a browser, and enter the IP address in the address bar. After logging in, go to the section Wireless or Wi-Fi Settings. In subsections Wireless Security or WPA/WPA2 Personal there will be a field Pre-Shared Key or Password, where the current password is indicated.
⚠️ Attention: Changing the password in your router settings will disconnect all devices on the network. You'll have to reconnect phones, tablets, and TVs using the new key.
Interfaces of routers from different manufacturers (TP-Link, ASUS, D-Link, Keenetic) may differ, but the logic remains the same. Look for sections related to wireless mode and security. If you changed the password for accessing the router's admin panel and forgot it, you may need to reset the device to factory settings using the button. Reset.
Common problems and solutions
During the password recovery process, users may encounter a number of common errors. For example, the system may report that network settings cannot be saved or viewed. This is often due to a wireless adapter driver conflict or corrupted Windows system files. In such cases, reinstalling the Wi-Fi module drivers through Device Manager can help.
Another common issue is encoding mismatch. If your password uses Cyrillic characters and you try to enter them on a device with a different keyboard layout, access will be blocked. In such cases, it's best to copy the password to a text file and transfer it, or temporarily change the password to a numeric one in your router settings.
It's also worth considering the limitations of corporate security policies. If you're in the office, access to password viewing features may be blocked centrally by the system administrator. In this case, the only solution is to contact your organization's IT department.
FAQ: Frequently Asked Questions
Is it possible to find out a Wi-Fi password if the computer has never connected to this network?
No, the operating system doesn't store passwords for networks to which you haven't successfully connected. In this case, you'll need to look for the password on the router's sticker, in the documentation, or reset the router to factory settings.
Is it safe to save passwords in Windows?
Yes, Windows stores them encrypted in the registry. Only users with administrator rights can access them. However, it's best not to automatically save passwords on shared computers.
What should I do if the "Show characters" field is inactive?
This means you don't have administrator rights. You need to log in as the computer owner or use the Command Prompt running as an administrator.
Is it possible to recover a password using a mobile phone?
On rooted Android devices, this is possible through system files. On an unjailbroken iPhone, you can't view the saved password in plain text, but you can transfer it to another Apple device using the share feature.