It's quite common to need to connect a new device to a wireless network but forget the access key. Users often save the password once on their computer and conveniently forget about it until they buy a new gadget or have guests over. Fortunately, the operating system Windows 10 stores this data in a secure manner and it can be retrieved using several methods.
Restoring access is possible without using third-party software if you have physical access to a computer that is already authorized on the network. System utilities allow you to display the hidden key text through a graphical interface or command line. Administrator privileges are required to perform certain operations.
In this material we will analyze all the current methods of obtaining information about network keys, from standard menus to advanced scripts. You'll learn how to safely manage saved profiles and avoid common mistakes when accessing system security settings.
Viewing a password through the Windows graphical interface
The easiest and safest way to find a forgotten key is to use the operating system's default settings. This method doesn't require any command knowledge and is suitable for most users. You'll need an active connection to the network whose password you want to find out.
First, open the network connections menu. Right-click the Wi-Fi icon in the system tray (near the clock) and select "Open Network and Internet settings." In the window that opens, find the "Network and Sharing Center" link or go to "Change adapter settings."
In the window that opens, find your active wireless connection, double-click it, and go to "Wireless Network Properties." Then select the "Security" tab. This is where the "Network Security Key" field is located, hidden by asterisks by default.
Check the box next to "Show entered characters." The system will ask you to confirm your administrator rights. Once confirmed, the character set you were looking for will appear in the field. We recommend copying or writing it down immediately to avoid forgetting it again.
Using the CMD command line to recover the key
For more advanced users or in cases where the graphical interface does not work correctly, the command line is ideal. The utility netsh Allows you to manage network configurations directly, bypassing graphical shells. This method provides more granular control over profiles.
Run the command prompt as an administrator. This is critical, as without elevated privileges the system will block access to stored security data. Enter cmd In the search, right-click on "Command Prompt" and select the appropriate item.
First, you need to find out the exact name of your network profile. Enter the command:
netsh wlan show profiles
In the "User Profiles" list, find your network name. Then, use the following command, replacing "NetworkName" with the actual name of your connection:
netsh wlan show profile name="Network_Name" key=clear
In the command output, find the "Security Settings" section. The "Key Contents" line will contain the password you're looking for in cleartext. This method works even if the computer isn't currently connected to the network, as long as the profile has been previously saved.
What to do if the command is not found?
Make sure you enter the command exactly, including spaces. If the error persists, check if the WLAN AutoConfig Manager service is enabled in Services (services.msc).
Retrieving data via PowerShell
An alternative to the classic CMD is a more powerful tool PowerShellIt provides similar functionality but works more natively with modern Windows architecture. For many system administrators, this is the preferred method due to improved scripting capabilities.
Launch PowerShell as administrator. Enter the following command to display all saved profiles:
netsh wlan show profiles
To immediately see the password for a specific network without unnecessary information, use the following construction:
(netsh wlan show profile name="Network_Name" key=clear) | Select-String "Key Contents"
The system will only display the line containing the key, which is convenient for quick copying. Please note that in the English version of Windows, the command keywords will be in English (key=clear remains unchanged, but the field names in the output will be different).
If you're using an English version of the OS, look for the "Key Content" line. In Russian localizations, as mentioned above, it's "Key Contents." PowerShell also allows you to export all profiles to an XML file for backing up network settings.
Managing profiles and resetting settings
Sometimes you need to not only find out the password, but also delete the old profile if it's causing connection conflicts. Windows stores a history of all networks the computer has ever connected to. Over time, this number can become excessive.
To delete a specific profile, use the command:
netsh wlan delete profile name="Network_Name"
This action will completely clear the settings for this network, including the saved password. The next time you connect, the system will ask you to enter the data again. This is a useful feature for diagnostics connection problems.
☑️ Checklist before deleting a profile
You can also reset all network settings through the Windows 10 Settings menu. Go to Settings → Network & Internet → Status → Network Reset. This will return all network components to factory defaults.
⚠️ Note: After resetting your network, you will have to re-enter passwords for all Wi-Fi networks on this computer. All saved profiles will be permanently deleted.
Third-party password recovery utilities
If built-in Windows tools are unavailable for some reason or blocked by group policies, you can use specialized software. There are many programs available, such as WirelessKeyView from NirSoft or WiFi Password Decoder.
These utilities scan the system registry and configuration files, extracting saved keys. They often have a more user-friendly interface and the ability to export to TXT or HTML. However, using third-party software carries its own risks.
Download programs only from the developers' official websites. Antivirus programs may flag such utilities as potentially unwanted programs (HackTools), as they use the same data access methods as stealer viruses.
| Name of the utility | License type | Security | Functional |
|---|---|---|---|
| WirelessKeyView | Freeware | High (official website) | Viewing and exporting keys |
| WiFi Password Decoder | Free/Paid | Average | Deep profile analysis |
| NetSpot | Freemium | High | Coverage analysis and passwords |
Typical errors and methods for eliminating them
When trying to find a password, users often encounter error messages. The most common issue is "Access Denied" when running commands in CMD. This almost always means the console is not running as an administrator.
Another common error is "Group Policy does not allow this operation." This occurs on corporate computers where the IT department has restricted user rights. In this case, bypassing the restriction using legal methods within the system is impossible.
There may also be encoding issues. If the network name or password contains special characters or Cyrillic, they may not display correctly in the command line (as gibberish). In this case, it's best to use the graphical interface or PowerShell with the correct UTF-8 encoding.
⚠️ Note: Operating system interfaces and security updates may change menu locations or command names. If the default paths don't work, check the latest Microsoft documentation for your version of Windows 10.
Questions and Answers (FAQ)
Is it possible to find out a Wi-Fi password if the computer is not currently connected to this network?
Yes, you can. If the network profile is saved in Windows (the computer has connected before), you can find the password using CMD or PowerShell, even if the connection is not currently established. The command netsh wlan show profile works with the archive of saved profiles.
Why is the Network Security Key field grayed out and inactive?
This means your current account doesn't have administrator rights. To change settings or view your password, you must log in with an administrator account or know the password to confirm the action.
Is it safe to save passwords in Windows?
Windows encrypts stored passwords, and they are tied to the user account. However, if an attacker gains physical access to your computer while it's running or runs a script with administrator privileges, they can extract this data. It's recommended to use complex passwords when logging in.
What to do if the netsh command does not find the profile?
Make sure you enter the profile name accurately, including capitalization and spaces. You can view the profile name in the list of all profiles using the command netsh wlan show profilesIf the profile is not listed, the computer has never connected to this network or the profile has been deleted.