How to view the password of a known Wi-Fi network on Windows 10

It's quite common to need to connect a new device to the network but have lost or forgotten the password. Operating system Windows 10 Automatically saves access keys for previously connected networks, making it easy to restore. This built-in security and convenience feature eliminates the need to reset your router or search for your ISP contract.

There are several proven ways to extract a saved key from the system storage. You can use the graphical settings interface, which is easy to understand even for beginners, or use more advanced methods via command line To obtain accurate data, it's important to have administrator rights on the computer being restored.

In some cases, standard methods may fail due to system updates or specific Group Policy settings. Therefore, this article discusses alternative options, including PowerShell and third-party utilities, and explains the reasons why the password field may be hidden. Follow the instructions carefully will help you avoid typical mistakes.

Password recovery via graphical interface

The simplest and safest method, which doesn't require entering complex commands, is to use the standard network connections menu. This method is ideal if you're within range of the network or have previously connected to it from this computer. You'll need access to the currently active connection or profile archive.

To begin, open the Start menu and go to Settings by selecting the gear icon. Next, follow the path Network and Internet, which displays all available network adapters. If you're currently connected to the desired network, select "Change adapter settings" at the bottom of the window or click the "Network and Sharing Center" link.

⚠️ Note: If you are not directly connected to the network but want to find out the password for a saved profile, this method will require additional steps through the list of known networks in newer versions of Windows 10 (update 21H2 and above) or using the command line described below.

In the Network and Sharing Center window that opens, find your active connection. Wi-Fi and click on its name (blue link). A small wireless network status window will appear. Click "Wireless Network Properties" to open a detailed profile description.

Go to the "Security" tab. This is where the main encryption settings and access keys are stored. You'll see the "Network Security Key" field, which is hidden by asterisks by default. To see the characters, check the "Show entered characters" box. The system may prompt you to confirm administrator privileges via a UAC pop-up.

After confirmation, the field will become readable, and you can copy or write down the password. This method works reliably for most home routers and access points. However, if the "Security" tab is missing or the button is grayed out, this may indicate corporate restrictions or the use of specific authentication protocols.

📊 Which password recovery method is most convenient for you?
Through Windows settings
Command line
Third-party programs
Resetting the router

Using the Command Line to View Profiles

For users who prefer precision and speed, the command line (cmd) provides powerful tools for managing network profiles. This method allows you to see a list of all networks ever saved and retrieve passwords even for those you're not currently connected to. This is especially useful if the graphical interface isn't working correctly.

Run the command prompt as administrator. To do this, enter cmd In Windows Search, right-click "Command Prompt" and select the appropriate option. The first step is to get a list of all saved Wi-Fi profiles. Enter the command:

netsh wlan show profiles

The system will display a list of all profiles, divided into groups. Find the desired network name in the "User Profiles" list. If the name isn't listed, the computer has never connected to this access point automatically, and the password isn't saved.

To view the password for a specific profile, use the command with the network name. The syntax requires an exact match. For example, if the network is called Home_WiFi, the command will look like this:

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

Parameter key=clear This is critically important, as it tells the system to display the security key in plaintext. Without this flag, you'll only see the profile's technical specifications. In the command output, find the "Security Parameters" section and the "Key Contents" line.

  • 🔍 Accuracy: The command line shows the exact value without masking by symbols.
  • Speed: The process takes a few seconds even with a large number of profiles.
  • 💾 Versatility: Works on all versions of Windows 10 and 11, regardless of build.

☑️ Check before entering a command

Completed: 0 / 7

Alternative method via PowerShell

A powerful scripting language PowerShell Built into Windows 10 by default, it often provides more flexible options for working with network interfaces than the classic command prompt. This method can be useful if the standard commands netsh for some reason are blocked by antivirus or security policies.

Open PowerShell as administrator. Unlike cmd, you can use more complex queries here, but the same logic will work for our purposes. However, PowerShell also supports running netsh commands, making it a convenient alternative shell. Enter the same command to view the profile:

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

If you want to get a list of all passwords at once as a report, you can use a more complex script, but for a one-time task, standard output is sufficient. PowerShell also allows you to export the network configuration to an XML file, where the key can be stored in encoded form, but for simple viewing, this is overkill.

The PowerShell interface may be intimidating to newbies with its blue background and blinking cursor, but the principles of working with text commands are identical. The main thing is to pay close attention to syntax and quotation marks. If the network name contains spaces, quotation marks are required, otherwise the command will not execute correctly.

What should I do if PowerShell gives me a script execution error?

If you see a red error about the script execution policy, this doesn't affect simple netsh commands. However, if you're running a third-party .ps1 file, you may need to enter the command: Set-ExecutionPolicy RemoteSigned -Scope CurrentUser. This will allow trusted scripts to run.

Comparison of access recovery methods

Each of the methods discussed has its advantages and disadvantages depending on the situation. The graphical interface is convenient for visual users, the CLI is for professionals, and PowerShell is better for automation. Understanding the differences will help you choose the optimal solution at any given moment.

Below is a table comparing the main characteristics of the methods. It will help you quickly decide which tool to use if the first option doesn't work. Please pay attention to access rights and compatibility requirements.

Method Admin rights required You need to be online Complexity
Graphical interface Yes (sometimes) Desirable Low
Command line (netsh) Yes No Average
PowerShell Yes No Medium/High
Third-party software Yes No Low

It's important to note that using third-party software always carries certain risks. Free utilities may contain adware or collect telemetry. Native Windows tools, such as netsh, are the safest choice, as they are part of the operating system and do not require the installation of additional components.

If none of these methods help, the network profile may be corrupted or deleted from the registry. In this case, the only options are to physically access the router to reset it or locate the sticker on the device with the factory password. The factory password only works if you have never changed the router's security settings.

Possible errors and solutions

When recovering a password, users often encounter various system error messages. Understanding their nature allows for quick resolution. Most often, errors are related to access rights or syntax errors when entering commands.

The "Network not found" or "Profile not found" error occurs when the network name in the command doesn't match the saved profile. In Windows, case isn't usually important, but spaces and special characters must be included. Also, make sure to use quotation marks if the name contains spaces.

⚠️ Note: The interface and menu item names may differ slightly depending on the Windows 10 build version (e.g., 20H2, 21H1, 22H2). Microsoft periodically updates the Settings menu design, moving some items.

If the system displays "Access Denied" when attempting to use the key, it means you've launched the command prompt without administrator privileges. Be sure to right-click the CMD shortcut and select "Run as administrator." Without this privilege level, the parameter key=clear it won't work.

Another common issue is the lack of a "Security" tab in network properties. This often occurs with public networks or corporate profiles that use certificates instead of passwords. In such cases, the password itself may not exist in its traditional form, and authentication occurs via a domain login and password or a certificate.

  • 🚫 Error 5: Access denied (admin rights required).
  • 🔤 Syntax error: Check the quotes around the network name.
  • 📡 No profile: The computer has never connected to this network automatically.

Questions and Answers (FAQ)

Is it possible to find out the Wi-Fi password if I am not currently connected to this network?

Yes, this is possible if your computer has previously successfully connected to this network and saved the profile. Using the command prompt with administrator rights and the command netsh wlan show profile name="Name" key=clear, you will be able to see the saved key even if the network is currently out of range or not connected.

Why is the Network Security Key field grayed out and inactive?

This can happen for two reasons. First, you're not a computer administrator. Second, you're trying to view the properties of a network connected through a corporate domain or guest access, which uses different authentication methods that don't require the user to enter a static password.

Is it safe to use third-party password viewers?

Using third-party software (such as WirelessKeyView) carries potential risks. Antivirus programs often identify such programs as hacker tools (RiskWare) because they extract sensitive data. It's safer and more reliable to use built-in Windows tools, such as the command prompt or network settings.

What to do if you forgot your Windows administrator password?

Without administrator rights, you won't be able to view saved Wi-Fi passwords using standard system tools. This is a security measure. In this case, you can try resetting your account password if you're using a Microsoft account via the recovery website, or use the Guest account if it has network management enabled (which is rare).