How to view saved Wi-Fi passwords in Windows 10

Many users are familiar with the situation of needing to connect a new gadget to a wireless network but completely forgetting the password. Fortunately, the operating system Windows 10 Automatically saves access keys for networks you've ever connected to. This allows you to avoid having to remember complex combinations of characters and simply retrieve them from your computer's memory as needed.

There are several proven ways to access this information. You can use the system's graphical interface for a quick overview, use the command line for more detailed analysis, or use powerful scripts. PowerShellEach method has its own advantages depending on whether you're currently connected to the network or trying to recall data from past connections.

In this article, we'll take a detailed look at all available options. We'll cover standard operating system tools that don't require third-party software, and we'll focus on the security of your data. Understanding where and how your data is stored network keys, will help you effectively manage connections in your home office or when setting up guests.

View the password of the currently active network

The easiest way to find the access key is to use the standard Windows settings if your computer is currently connected to the desired Wi-Fi network. This method doesn't require any command knowledge and is suitable for users of any skill level. You'll need access to the Network Connections window, which is hidden deep within the system settings.

To get started, open the Start menu and type the phrase in the search bar. ncpa.cpl, then press Enter. The "Network Connections" window will open, displaying all available adapters. Find the icon Wireless network, which usually looks like a fan or antenna, and right-click on it.

In the drop-down menu, select "Status," then click "Wireless Network Properties." In the window that opens, go to the "Security" tab. This is where the "Network Security Key" field is located, hidden by asterisks by default. To see the characters, check the "Show characters" box.

⚠️ Important: If the "Security" tab is missing or the "Show characters" button is grayed out, this may mean that your account does not have administrator rights or the network profile has Group Policy restrictions.

It's worth noting that this method only reveals the password for the network you're currently connected to. If you want to remember the password for a neighbor's Wi-Fi connection you connected to a month ago, this method won't work, and you'll have to use more advanced tools.

Using the Command Line to View Profiles

Command line CMD — is a powerful operating system management tool that allows you to obtain hidden information about network profiles. It not only reveals the password for the current network but also displays a list of all saved networks, along with their access keys. This method is especially useful when the graphical interface is not working correctly.

To launch the command line, press the key combination Win + R, enter cmd and press Enter. To gain full access to the network configuration, it's best to run the console as administrator. First, you need to find out the exact network profile name, which may differ from the SSID.

netsh wlan show profiles

After running this command, the system will display a list of all profiles ever saved on this computer. Find the desired network in the list and copy its name. Next, use the command to display the details of a specific profile by adding the key. key=clear, which tells the system to show the password in clear text.

netsh wlan show profile name="Your_Network_Name" key=clear

In the command output, scroll down to the "Security Settings" section. The "Key Contents" line will contain the password you're looking for. This method is universal and works on most versions of Windows, starting with Vista, making it a reliable tool in any system administrator's arsenal.

☑️ Check before entering commands

Completed: 0 / 4

Retrieving passwords via PowerShell

Modern shell PowerShell offers even more flexibility for working with network configurations. Although the syntax may seem more complex than in a regular command line, the results are often more structured. This method is ideal for those accustomed to scripting and want to automate the process.

Launch PowerShell by typing its name in the Start menu search. To list all profiles, use a command similar to CMD, but it may be handled differently in PowerShell depending on the module version. However, the fastest way is still to use a built-in module. NetSecurity or classic netsh inside PowerShell.

Run the following command to list all profiles and their passwords:

(netsh wlan show profiles) | Select-String"\:(.+)$" | %{$name=$_.Matches.Groups[1].Value.Trim; $_} | %{(netsh wlan show profile name="$name" key=clear)} | Select-String"Key content\W+\:(.+)$" | %{$pass=$_.Matches.Groups[1].Value.Trim; $_} | %{[PSCustomObject]@{ PROFILE_NAME=$name;PASSWORD=$pass }} | Format-Table -AutoSize

This long line of code automatically loops through all profiles, extracts passwords from them, and generates a convenient table. If you're worried about syntax errors, you can run the commands one by one: first get the profile name, then request the password for a specific name, as you would in CMD.

Using PowerShell is especially useful if you need to export data or pass it to another program for processing.

📊 Which method of viewing passwords do you find more convenient?
Through the graphical interface
Command Prompt (CMD)
PowerShell
Third-party programs

Comparison of Wi-Fi data access methods

The choice of network information retrieval method depends on your skills and the current situation. A graphical interface is suitable for one-time actions, such as quickly connecting from a phone. The command line is indispensable for remote administration or when a mouse is not available. PowerShell is the preferred choice for professionals who need to perform large-scale operations.

Below is a table to help you navigate and choose the best method for your situation. It takes into account complexity, required access rights, and speed of results.

Method Necessary rights Complexity Shows only the active network
Graphical interface User Low Yes
Command Prompt (CMD) Administrator Average No (all profiles)
PowerShell Administrator High No (all profiles)
Third-party software Administrator Low Depends on the program

As the comparison shows, the command line and PowerShell provide the most comprehensive access to your connection history. However, if you've simply forgotten your home router password right now, the graphical method is the quickest, most hassle-free solution.

Restoring access to forgotten networks

There are times when a computer "remembers" a network but doesn't connect automatically, or you want to share a password with a friend but can't remember it. In these situations, knowing where the passwords are stored network profiles, becomes critically important. Windows 10 stores this data in encrypted form, but it is accessible to authorized users.

If standard methods don't work, the network profile may be corrupted. In this case, you can delete it and recreate it if you know the password. To delete the profile, use the command:

netsh wlan delete profile name="Profile_Name"

After deleting the network, the system will forget it and request the key again the next time you connect. This is a useful feature if you've changed the router password, but Windows still tries to connect with the old password and returns an error. Clearing old profiles also improves security by removing access to networks you no longer use.

What to do if the command fails?

Make sure you use quotation marks if the network name contains spaces. Also, check that the console is running as administrator. If the issue is with encoding, try switching the input language to English before entering the network name.

Security measures when working with passwords

Storing passwords in the operating system is convenient, but it carries certain risks. If an attacker gains access to your computer with administrator rights, they can easily extract all stored Wi-Fi keys. Therefore, it's important to follow basic principles. digital hygiene when working with network settings.

Always use strong passwords for your Windows administrator account. Don't allow others to use your computer under your account. If you're selling or giving away your computer, be sure to perform a full system reset or use secure data erasure tools to prevent the new owners from accessing your connection history.

⚠️ Warning: Password recovery programs downloaded from untrusted sources often contain viruses or miners. Use only built-in Windows tools or trusted software from reputable vendors.

It's also a good idea to keep your operating system updated regularly. Microsoft periodically releases patches to address vulnerabilities in credential storage mechanisms. Ignoring updates can leave your computer vulnerable to attacks aimed at stealing network keys.

Frequently Asked Questions (FAQ)

Is it possible to view a Wi-Fi password if the computer is not currently connected to the network?

Yes, you can. Windows stores profiles of all networks you've previously connected to. Using the command prompt (CMD) or PowerShell, you can retrieve the password for any saved profile, even if you're currently outside the router's range.

Why is the "Network Security Key" field grayed out?

This happens if your current account doesn't have administrator rights. To view the password, you must log in with an account with full rights or run the network properties window as an administrator.

Where are Wi-Fi passwords physically stored in Windows 10?

Passwords are stored in the system registry and special configuration files in the folder C:\ProgramData\Microsoft\Wlansvc\Profiles\InterfacesHowever, they are encrypted, and you can't just read them with a text editor - they require encryption, which the system performs when you request it through netsh.

Is it safe to use third-party password viewers?

Using third-party software carries risks. Many free utilities can contain adware or malware. Built-in Windows tools (CMD, PowerShell, network settings) are completely safe and do not require additional software installation.

What should I do if the netsh command returns the error "The wireless network service is not running"?

The WLAN AutoConfig service needs to be started. Click Win + R, enter services.msc, find "WLAN AutoConfig Service" in the list, right-click and select "Start" or "Restart".