How to find the password for a connected Wi-Fi network on Windows 10

It's a common situation to need to connect a new device to an existing network, but the password is forgotten or lost. In the operating system Windows 10 This problem is solved using built-in tools, without the need for third-party software. The system stores access keys to networks you've previously logged into, making reconnecting easy.

There are several proven methods for extracting this information: via a graphical interface, using the command line, or PowerShell. Each method has its own characteristics and is suitable for different use cases. In this article, we'll detail the steps for each option so you can choose the one that's most convenient for you.

It is important to understand that you will need permissions to perform most of the operations described below. administratorWithout the appropriate privileges, the Windows security system will block access to stored credentials. This is a standard practice for protecting user data from unauthorized access by malware.

Finding a password through network settings and sharing

The simplest and most intuitive way is to use the system's graphical interface. This method is ideal for those who prefer visual control and don't want to mess with code. Open the current connection status window, which contains basic network information.

To get started, go to the Start menu and select the gear icon to open the section ParametersNext, go to "Network and Internet" → "Status." In the window that opens, find the link "Change adapter settings" or "Network and Sharing Center," depending on your OS version.

In the window that opens, find the active wireless connection and click on it. A dialog box with general information will appear. Here you'll find the button Wireless Network PropertiesClick on it to go to more detailed security protocol settings.

⚠️ Note: If you don't see the "Properties" button or it's grayed out, you may be trying to access the properties of a guest network or a network that isn't currently connected to. Make sure your laptop or PC is connected to the correct router.

In the new window, switch to the "Security" tab. This is where the "Network Security Key" field is located, hidden by asterisks by default. To see the actual password, check the box next to it. "Show input characters"After this, the asterisks will turn into readable text.

📊 Which password recovery method do you find more convenient?
Via GUI settings
Via the command line
Via PowerShell
Resetting the router

Using the Command Prompt (CMD) to extract the key

For more advanced users or in situations where the graphical interface isn't working correctly, the command line is a great solution. This tool provides direct access to WLAN profiles stored on the system. The method is universal and works even on limited versions of Windows.

Launch the Command Prompt as administrator. To do this, right-click the Start button and select Windows PowerShell (Administrator) or search for cmd In the search box, right-click and select the appropriate option. First, you need to find out the exact name of the network profile.

Enter the command to list all saved profiles:

netsh wlan show profiles

Find your network name in the list. Then use the command to display details of a specific profile by adding the parameter key=clearThis is a critical argument that forces the system to reveal the key in plaintext:

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

In the command results, scroll down to the Security Settings section. In the line Key Contents Your password will be displayed. Note that the network name in the command must be enclosed in quotation marks if it contains spaces.

☑️ Check before entering a command

Completed: 0 / 4

Working with profiles via PowerShell

PowerShell is a more powerful alternative to the classic command line, offering advanced scripting capabilities. It's just as suitable for getting a Wi-Fi password, and may even be preferable for some automation scenarios.

Launch PowerShell with administrator privileges. The basic command here is the same as the one used in CMD, as both utilities access the same Windows network interface. The syntax remains the same, making it easier to remember:

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

However, PowerShell allows for more complex filters. For example, you can display only key strings to avoid searching for a password in a long list of text. For this, you can use a pipeline and a command Select-String, although for a one-time password retrieval this may be excessive.

If the standard command doesn't work, check the WLAN AutoConfig service. Enter Get-Service wlansvc and make sure the service status is RunningIf it is stopped, start it with the command Start-Service wlansvc, then try viewing the profile again.

What to do if the command returns an error?

If you see an error message like "Group parameter not found," or something similar, check that the profile name is correct. The name must be a literal match, including case and spaces. Also, make sure the profile actually exists in the list of saved networks.

Password retrieval methods comparison table

The choice of method depends on your current circumstances and comfort level when working with a computer. Below is a comparison table to help you quickly understand the advantages and disadvantages of each method.

Method Complexity Necessary rights Speed
Graphical interface Low User Average
Command Prompt (CMD) Average Administrator High
PowerShell Average Administrator High
Third-party software Low Administrator Depends on the software

As the table shows, the graphical interface is the simplest, but requires more clicks. The command line and PowerShell require memorization of syntax, but are faster and more reliable in the event of interface failures. Using third-party password viewers is often unnecessary and can pose security risks because it requires granting them full access rights to the system.

Possible errors and how to fix them

Technical difficulties may arise during the access recovery process. These are most often related to access rights or damaged system files. Understanding the nature of the errors will help you quickly fix them and obtain the necessary information.

One common problem is a message that the profile was not found. This means the computer has forgotten the network, or you're trying to find the password for a network you've never connected to from this device. In this case, the system doesn't physically store the key.

  • 🛑 "Access Denied" error: Make sure you're running the console as an administrator. Normal user mode doesn't allow reading stored security keys.
  • 🛑 "Parameter is specified incorrectly" error: Check the command syntax. Pay particular attention to the quotes around the network name and parameter. key=clear.
  • 🛑 WLAN service not running: If network services are stopped, none of the methods will work. Check the service manager and start WLAN AutoConfig.

⚠️ Note: Operating system interfaces are subject to change. Menu item locations or exact command names may vary slightly between Windows 10 builds (Home, Pro, Enterprise) or after major updates. Always consult the latest Microsoft documentation if the default paths don't work.

Security issues and key storage

Storing passwords in plaintext (even protected with asterisks) creates a potential risk. If an attacker with administrator rights gains access to your computer, they can easily extract all stored Wi-Fi keys. Therefore, it's important to monitor the physical security of your device.

It's recommended to regularly review your list of saved networks and delete those you no longer use. This will reduce your attack surface. To delete a profile, use the command:

netsh wlan delete profile name="Network_Name"

It's also worth considering using a password manager to store keys for important networks, rather than relying solely on browser or OS memory. This is especially relevant for corporate networks or networks with complex passwords.

Frequently Asked Questions (FAQ)

Is it possible to find out the Wi-Fi password if I'm not connected to the network right now?

Yes, you can. Windows stores profiles of all networks you've previously connected to. You can retrieve the password from a saved profile even if your laptop isn't currently connected to the router, as long as the profile hasn't been deleted from the system.

What should I do if the "Show entered characters" field is inactive?

This may occur if you don't have local administrator rights on the computer, or if the computer is part of a domain with strict security policies. In this case, try the method with a command prompt running as administrator.

Does this method work on Windows 11?

Yes, the methods described, especially using the command line (netsh) and PowerShell are fully compatible with Windows 11. The graphical interface in the new OS may look different, but the logic for working through "Properties" remains similar.

Where are Wi-Fi passwords physically stored in the system?

Passwords are stored in a secure area of ​​the registry and system configuration files, often in encrypted form. Directly editing these files without specialized tools is not recommended, as it may result in loss of network access.