It's common to have friends over or need to connect a new gadget, but you've completely forgotten your wireless network password. Fortunately, the operating system Windows 10 has a built-in mechanism that stores access keys to all networks your computer has ever connected to. This isn't just a convenience; it's an important security feature that allows you to quickly restore access without having to access your router's settings.
In this article, we'll take a detailed look at several methods for extracting this sensitive information. We'll cover both a graphical interface for one-time scans and powerful command-line tools for advanced users. You'll learn to see hidden symbols and understand where exactly the operating system hides this data within its depths.
It's important to understand that you'll need administrator privileges to perform most of the steps described. Without the appropriate privileges, the system won't allow you to view the contents of protected profiles. Ensure you're working under an account with full access rights before attempting to manipulate network settings.
View the current connection password through network settings
The easiest and most obvious way to find the access key is to look it up in the active connection settings. This method is ideal if your laptop or PC is currently connected to the desired network. You won't need to enter any complicated commands; simply follow the standard path in the settings menu.
First, open the Start menu and select the gear icon to get to Parameters. Next, go to the section Network and Internet, which displays your connection status. In the window that opens, find the "Network and Sharing Center" link, or use the classic Control Panel method by entering the search query.
After opening the network status window, click on the name of your wireless connection (the blue Wi-Fi link). A small window will open with general information about the connection speed and duration. This is where you'll find the button that allows you to look under the hood of security.
Click the button Wireless network propertiesIn the new window, go to the tab SecurityYou'll see the "Network Security Key" field, where the characters are hidden by asterisks. To see the actual password, check the box next to it. Show entered characters.
⚠️ Note: If the "Security" tab is missing or the buttons are grayed out, you may be using a guest account or a profile with limited rights. In this case, please contact your system administrator.
This method is visually appealing, but it has a limitation: it only shows the password for the network you're currently connected to. If you need to find out the password for a network your computer connected to a week ago, this method won't work.
Using the Command Prompt to View All Profiles
For a more in-depth analysis and viewing of connection history, it is best to use the built-in utility netshThis tool allows you to manage network settings through the console and is a standard component of all versions of Windows. It provides access to a complete database of saved profiles.
To begin, launch the Command Prompt as administrator. Right-click the Start button and select Windows PowerShell (Administrator) or find cmd In the search box, right-click and select "Run as administrator." This is a critical step, as without it, the commands won't run.
In the black window that opens, enter the command to display a list of all saved profiles:
netsh wlan show profiles
The system will display a list of all networks the device has ever connected to. Find the desired name (SSID) in the list. If the name contains spaces, be sure to enclose it in quotation marks in subsequent commands.
Now that you know the exact profile name, use the following command to display detailed information, including the password. Replace Network_name to your name:
netsh wlan show profile name="Network_Name" key=clear
Find the line in the information Key content (or Key Content). Your password will be displayed in plaintext next to it. This method works whether you're connected to the network or not, as long as your profile is saved in the system.
Retrieving passwords for all networks at once using PowerShell
If you need to access all saved passwords at once, manually try each network through cmd This can be time-consuming. PowerShell scripts can automate this process and output a single table with all the data in one go.
Open PowerShell with administrator privileges. Unlike the regular command line, PowerShell allows for more complex constructs and an object-oriented approach. We'll use a built-in module for working with WLAN profiles.
Enter the following command, which will loop through all profiles and display their names along with their passwords:
(Get-WmiObject -query"select * from MSNdis_WepNetworkConfiguration" -Namespace root\wmi).NetworkKey
However, a more universal and straightforward method for modern versions of Windows 10 is to use a loop to cycle through profiles. Copy and paste the following block of code:
$profiles = netsh wlan show profiles | Select-String -Pattern"All User Profile"foreach ($profile in $profiles) {
$profileName = ($profile -split":")[1].Trim
$password = netsh wlan show profile name="$profileName" key=clear | Select-String -Pattern"Key Content"
$pass = ($password -split":")[1].Trim
Write-Host"Network: $profileName | Password: $pass"
}
This script will automatically find all profiles, extract keys from them, and display them in a convenient format. This is especially useful for system administrators who need to quickly collect data from a workstation.
⚠️ Warning: When working with scripts, pay attention to syntax. A single missing quote or parenthesis can cause a runtime error. Copy the entire code to avoid typos.
☑️ Check before running the script
Analyzing saved profiles in the Windows registry
For advanced users interested in where connection data is physically stored, it's worth looking into the system registry. The operating system stores wireless network configurations in specialized registry sections, although the passwords themselves are stored there in encrypted form.
To open the Registry Editor, click Win + R, enter regedit and press Enter. Navigate to the following path:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles
Here you'll see numerous folders with long identifiers (GUIDs). Each one corresponds to a specific network profile. Inside, you'll find the parameter ProfileName, which will tell you which network it corresponds to. However, as mentioned earlier, you won't find the password here—it's protected by the system's DPAPI encryption mechanisms.
Viewing the registry is useful for removing broken profiles that are interfering with connections or for diagnosing network priority issues. If you see a profile that is no longer in use, you can delete it, but do so carefully.
- 📁 Branch: The Profiles section contains the history of all connections.
- 🔑 Key: Access keys are stored separately and protected by access rights.
- 🛡️ Security: Directly editing these values may break the network stack.
We recommend not making changes to the registry unless absolutely necessary and creating a backup copy. Registry errors can lead to instability in the operating system as a whole.
Comparison of data mining methods
The method you choose depends on your goals and skill level. A graphical interface is suitable for beginners, a command line is for quickly extracting a single password, and PowerShell is for bulk data collection. Below is a table to help you choose the best method.
| Method | Complexity | Admin rights required | Shows old networks |
|---|---|---|---|
| Network Settings (GUI) | Low | No (usually) | No (current only) |
| Command line (netsh) | Average | Yes | Yes |
| PowerShell script | High | Yes | Yes (all at once) |
| Third-party software | Low | Yes | Yes |
Using third-party software, such as WirelessKeyView from NirSoft, is also possible, but requires downloading executable files, which may raise suspicions in antivirus software. Native Windows tools are safer and more reliable in this regard.
Frequently Asked Questions (FAQ)
Is it possible to view the WiFi password on the locked screen?
No, you must be logged in with user rights to view saved passwords through settings or the command line. This is a security measure to prevent data theft through physical access to the device.
What should I do if the netsh command says "Access denied"?
This means that the command prompt is running as a standard user, not an administrator. Close the window and run cmd or PowerShell by right-clicking and selecting “Run as administrator”.
Where is the password stored if I reset my network settings?
When you reset your network settings ("Forget Network"), the profile is deleted from the system along with the saved password. It will be impossible to recover it using Windows tools; you will need to re-enter the key or access the router.
Is it safe to save passwords in Windows?
Yes, they are stored encrypted and linked to the user account. However, if an attacker gains physical access to your computer and administrator privileges, they can extract this data using the methods described above.
Is it possible to see the password for a network I have never connected to from this PC?
No, Windows only stores passwords used to connect from that specific device. The OS can't find the password for a network you haven't connected to.
Now you have a complete set of tools for managing saved WiFi passwords in Windows 10. Use this knowledge responsibly and keep your data secure.
Additional information about encryption
Passwords in Windows 10 are encrypted using the Data Protection API (DPAPI). The encryption key is tied to the user's login password, making data theft difficult without access to the account.