It's common to have guests over or buy a new gadget and forget your wireless network password. Fortunately, Windows 10 stores the credentials of all previously connected access points in a secure vault by default. This makes it easy to restore internet access without having to physically reset your router.
There are several methods for extracting this information, from a graphical settings interface suitable for beginners to a command line for advanced users. In this article, we'll examine each method in detail, explain how to find the hidden password, and explore the nuances of managing wireless connection profiles on your system.
Understanding where and how the system stores this data can be useful not only for restoring access but also for diagnosing connection issues. Sometimes old or conflicting profiles interfere with normal network operation, and deleting them is the only reliable solution.
Finding a password through the graphical settings interface
The easiest and safest way to find out security key To connect to an active network, use the standard wireless connection properties window. This method doesn't require complex commands and is accessible to anyone who can open the Start menu.
To begin, open the options menu by pressing the key combination Win + I, and go to the "Network and Internet" section. On the left side of the screen, select the "Status" tab, then click the "Network and Sharing Center" link. In the window that opens, find the name of your current connection (in blue) and click it.
A small status dialog box will appear, where you should click "Wireless Network Properties." Go to the "Security" tab and check the "Show characters" box. The system will instantly decode the hidden password and display it in the text field.
⚠️ Attention: If the Security tab is missing or the Properties button is grayed out, it may mean that you are trying to access the properties of a guest profile or you do not have administrator rights on this computer.
It's worth noting that this method only works for the network your computer is currently connected to. If you need to find out the password for a nearby cafe you connected to a week ago, this method won't work, and you'll have to use the command line.
Using the Command Line to View Profiles
The Command Prompt (CMD) provides more flexible tools for managing network configurations. It allows you to view a list of all networks ever saved, even if you're not currently connected to any of them.
To launch the utility, click Win + R, enter cmd and press Enter. To see the full list of profiles, enter the command:
netsh wlan show profiles
The system will respond with a list of all saved names (SSIDs). To find the password for a specific network, use the extended command with the profile name. For example, if the network is called "HomeWiFi," the command would look like this:
netsh wlan show profile name="HomeWiFi" key=clear
In the command output, find the "Security settings" section. The "Key Content" line will contain the password you're looking for in cleartext. This is one of the fastest ways to access forgotten data.
☑️ Check before entering commands
It's important to maintain capitalization when entering the network name in quotation marks. If the name contains spaces, quotation marks are required, otherwise the command will be executed incorrectly or an error will occur.
Working with PowerShell for Network Administrators
For those who prefer more modern management tools, PowerShell offers powerful scripting capabilities and detailed network parameter inspection. This method is especially useful for quickly copying information or performing in-depth configuration analysis.
Run PowerShell as administrator. The command to list all profiles is similar to CMD, but the output may be more structured:
netsh wlan show profiles
To immediately get the password in a convenient format, you can use the filter command. Enter the following code, replacing "NetworkName" with your own:
netsh wlan show profile name="NetworkName" key=clear | Select-String"Key Contents"
This method eliminates the need to visually search for the desired string in a large volume of text. PowerShell filters the output and displays only the string containing the password, significantly speeding up the process.
Additionally, PowerShell allows you to export all profiles to XML files for transfer to another computer. This is especially useful for system administrators deploying workstations in an office.
Removing and managing forgotten networks
Over time, the list of saved networks grows, including old connections to friends' phones, cafes, and hotels. Some of these may conflict with the current connection or simply take up priority.
You can delete an unnecessary profile using the command line. Use the command:
netsh wlan delete profile name="NetworkName"
The system will confirm the deletion with the message "The profile has been deleted" or return an error if the profile is not found. This action is irreversible through the standard interface, so only delete networks you are sure of.
What happens if you delete a system profile?
Deleting a Wi-Fi profile doesn't affect drivers or other system settings. You simply lose the saved password and security settings for the specific access point. When you reconnect, Windows will prompt you for the password again.
You can also clear the entire list of profiles at once, which is useful when transferring the computer to another user or before selling the device. There's a command for this that resets all WLAN profiles, but it should be used with extreme caution.
⚠️ Attention: Before deleting profiles in bulk, make sure you have access to your router or have written down passwords for important networks, otherwise you may lose your ability to connect to the internet.
Network priority management is also possible through netshYou can tell the system which network to connect to first if multiple known access points are available.
Exporting and importing Wi-Fi profiles
When switching to a new computer or reinstalling Windows, you need to transfer your saved passwords. Manually entering dozens of complex character combinations is time-consuming and error-prone.
Windows allows you to export profiles in XML format along with their security keys. The export command looks like this:
netsh wlan export profile key=clear folder="C:\WifiBackups"
Parameter key=clear This is critical: without it, passwords won't be saved in the files, making exporting pointless. The files will be saved to the specified folder and can be transferred to a new PC.
To import profiles on a new computer, use the command:
netsh wlan add profile filename="path\to\file.xml"Once the import is complete, the network will appear in the list of available networks, and the connection will occur automatically when it enters the signal range.
Parameter Description Example of meaning Interface Network adapter name Wi-Fi, Wireless Network Profile Name of the saved profile Home_Net_5G SSID Network name (visible to users) Home_Net_5G Authentication Authentication type WPA2-Personal Cipher Data encryption type CCMP This table shows the main parameters stored in a profile. These settings are preserved during export, ensuring full compatibility during migration.
Diagnosing connection problems via profiles
Sometimes the computer "sees" the network but fails to connect, displaying the error "Unable to connect to this network." This is often caused by a desynchronization between the saved profile and the router settings (for example, after changing the password or encryption type).
In such cases, a complete profile reset helps. Delete the network with the command
delete profile, as mentioned above, and then reconnect using the current password. This forces Windows to create a new, clean profile with the correct settings.It's also worth checking whether the "Random MAC Addresses" mode is enabled in Windows 10's privacy settings. Some routers block devices with changing MAC addresses unless they are whitelisted.
📊 What connection problem do you encounter most often?Constant disconnectionsIncorrect passwordNetwork not foundLimited connectionEverything works fine.Using the command
netsh wlan show interfaceswill help you get detailed information about the current status of the adapter, signal level, and the channel used, which is useful for in-depth diagnostics.Frequently Asked Questions (FAQ)
Where are Wi-Fi passwords physically stored in Windows 10?
Passwords are stored in a protected section of the registry and special system configuration files, access to which is restricted to administrator rights. Directly editing these files is not recommended, as it may corrupt network settings.
Is it possible to find out the password for a network I've never connected to?
No, this is not possible. Windows only stores the credentials entered by the user or automatically obtained upon a successful connection. Hacking into other people's networks without permission is illegal.
Why does the netsh command give an "Access Denied" error?
You most likely launched the Command Prompt or PowerShell without administrator privileges. To run most network commands, you need to launch the terminal as administrator via the context menu.
Are profiles saved after reinstalling Windows?
When you perform a clean installation of the operating system, all profiles and passwords are deleted. These are only preserved when upgrading your Windows version, preserving your user files and settings.
How to view a password on a tablet or phone?
On Android (versions 10 and above) and iOS (versions 16 and above), you can also view saved Wi-Fi passwords in your network settings, often using biometric security.