How to view your Wi-Fi password in Windows 10

It's common to need to connect a new device to an existing network but lose or forget the password. Users often write down complex combinations of characters on pieces of paper that get lost over time, or simply forget what they entered when first setting up the router. Fortunately, the operating system Windows 10 Stores the security keys of all networks the computer has ever connected to in encrypted form. This allows you to restore access without having to reset the router or access its web interface.

There are several methods for extracting this information, from standard graphical interfaces to advanced console commands. Each method has its own advantages: some are suitable for quickly viewing the current connection, while others allow you to retrieve passwords for all saved networks, even if you're not currently connected to them. It's important to understand that most of these actions require privileges. administrator, as the system protects this data from unauthorized access by malicious programs.

In this article, we'll cover all available methods in detail, from the simplest to professional diagnostic tools. We'll cover how to use built-in system tools, how to work with the command line, and which third-party utilities can be useful in complex situations. We'll also cover security issues and where exactly in the registry and system files this sensitive data is stored.

Using the Network Connections interface

The easiest and most secure way to find out your access key is to use the operating system's graphical interface. This method is ideal for those who don't want to mess with code or the command line. However, it has a significant limitation: you'll only be able to see the password for the network your computer is currently connected to. If you've moved to a different location or disconnected from Wi-Fi, this method won't work unless you first reconnect.

First, you need to open the Network and Sharing Center. You can do this from the taskbar by right-clicking the Wi-Fi icon, or from the Control Panel. In the window that opens, find your active connection and click the link with the name of your wireless network. A small status window will open, displaying the connection speed and session duration.

Next, you need to go to the wireless network properties. In the status window, click the button Wireless network propertiesA new dialog will open with several tabs. You need the tab SecurityThis is where the main encryption parameters and access key are located. By default, the "Network Security Key" field is hidden behind asterisks to protect it from prying eyes.

⚠️ Attention: If the "Security" tab is missing or the buttons are grayed out, make sure your account has administrator rights. On corporate networks, access to these settings may be blocked by IT group policies.

To see the hidden password, check the box next to the item Show entered charactersThe system may prompt you to confirm administrator privileges via UAC (User Account Control). Once confirmed, the asterisks will turn into readable text. Copy or write it down. This method works reliably across all builds. Windows 10 And Windows 11.

📊 Which password recovery method do you prefer?
Via Windows settings (GUI): Via command line (CMD): Via PowerShell: Using third-party programs

Command Prompt (CMD) to Extract Keys

For more advanced users and system administrators, using the command line is ideal. This method offers more flexibility and allows you to manage network profiles. Using the utility netsh (Network Shell) you can not only view the current password, but also display a list of all networks ever saved, as well as export their configuration.

The first step is to run the command prompt as administrator. Click Win + X and select "Windows PowerShell (Administrator)" or search for "cmd," right-click, and select "Run as administrator." First, it's helpful to get a list of all saved profiles so you know the exact name of the network whose password you're looking for. Enter the following command:

netsh wlan show profiles

The system will display a list of all profiles. Find the desired network name (SSID) in the list. Please note that names may contain spaces, so it's best to enclose them in quotation marks when entering commands. Now that you know the exact name, you can request the security key. The command has the following format, where Network_name you need to substitute your value:

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

In the command output, find the section Security parameters (Security settings). There will be a line there. Key content (Key Content), where your password will be displayed in clear text. This method is especially convenient because it doesn't require menu navigation and works even on remote machines if you have access.

☑️ Check before entering commands

Completed: 0 / 1

It is worth noting that the team netsh is a powerful configuration tool. Syntax errors can cause the command to simply fail, but it won't cause any harm to the system. However, be careful when using parameters to delete or modify profiles if you're unsure of what you're doing.

Working with PowerShell for Network Administrators

PowerShell is a more modern and powerful alternative to the classic command line. Although for simple tasks, it's often enough netshPowerShell allows you to automate the process and integrate it into scripts. This is especially useful if you need to extract passwords from multiple computers or save them to a file for auditing.

In PowerShell you can also use the command netsh, as it's a system cmdlet, but native cmdlets also exist. However, the fastest way to get a password via PowerShell is to run the same command as in CMD, but with the option to immediately copy the result to the clipboard. Open PowerShell as administrator and enter:

(netsh wlan show profile name="Network_Name" key=clear) | Select-String"Key Contents"

This construct executes the query and filters the output, leaving only the password string. This saves time searching for the desired string in a large volume of text. If your system is in English, replace "Key Content" with "Key Content."

PowerShell also allows you to create scripts for bulk data collection. You can write a loop that will iterate through all profiles in a list and display their names and passwords. This is useful for IT professionals maintaining office networks, where users often forget passwords for corporate access points.

How to create a script to output all passwords at once?

Create a file with the .ps1 extension. Insert code that retrieves a list of profiles using netsh wlan show profiles, then loops through the show profile key=clear command for each profile and parses the output. This will allow you to get a complete dump of all saved keys in a single operation.

Third-party password recovery utilities

If you don't want to mess with the console, and the standard interface doesn't display the password (for example, due to driver errors or blocking), specialized programs can help. There are many utilities designed for recovering forgotten Wi-Fi passwords. They automate the process of calling system APIs and display the information in a convenient format.

One of the most popular and time-tested programs is WirelessKeyView from NirSoft. This portable utility requires no installation, making it ideal for use on a flash drive. It displays all keys stored in the operating system, including the SSID, authentication type, and the key itself in both HEX and ASCII formats.

Other popular solutions include WiFi Password Decoder And Magic WiFi Password RecoveryThese programs often have a more user-friendly interface and additional features, such as a QR code for quickly connecting your phone. However, when using third-party software, always be aware of the risks.

⚠️ Attention: Download utilities only from the developers' official websites. Many cracked versions of Wi-Fi hacking programs contain Trojans and stealers that can steal your real passwords and bank card information. Antivirus programs often react to such programs as HackTools, which is normal for legitimate recovery utilities, but requires caution.

When using such programs, be sure to scan files using services like VirusTotal. Although these utilities are legal (they only read what's already saved in the system), antivirus programs may flag them as potentially unwanted due to the potential for malicious use.

Data Storage Analysis and Method Table

Where are passwords physically stored in Windows 10? The operating system stores wireless network configurations in a special registry section and in protected system files. The keys are encrypted using the user account, so logging in and viewing another user's passwords without their consent (or admin rights) is impossible. The data is stored in XML format in a folder ProgramData\Microsoft\Wlansvc\Profiles\Interfaces, but the files themselves are encrypted.

To make it easier to compare all the methods discussed, we've prepared a summary table. It will help you choose the best method based on your situation and level of preparation.

Method Complexity Admin rights required Works without a network connection
Windows Interface (GUI) Low Yes (for viewing) No (active network only)
Command Prompt (CMD) Average Yes Yes (for any saved)
PowerShell scripts High Yes Yes
Third-party utilities Low Yes Yes

The choice of method depends on the specific task. For a one-time use, the interface is suitable, while the console is suitable for system administration. If the computer has never connected to the router, finding the password programmatically won't work—you'll need physical access to the router itself or knowledge of the password from another device.

Restoring access via the router's web interface

If none of the software methods work (for example, you've changed computers and the new one doesn't have the password, and you can't view it on the old one), the last reliable option is to view the password directly in the router settings. To do this, you need to know the gateway IP address (usually 192.168.0.1 or 192.168.1.1) and login/password to enter the admin panel.

Connect your computer to the router via a LAN cable or Wi-Fi (if it's still working). Open your browser and enter the IP address in the address bar. After logging in (the default details are often written on a sticker on the bottom of the device), go to the wireless network section. It may be called Wireless, Wi-Fi, WLAN or Wireless mode.

In the security subsection (Wireless Security) you will see a field PSK Password, WPA Key or something similar. The current password will be displayed there. If the field is hidden, there's usually a "Show" button or an eye next to it. This is the most reliable method, as it displays the current hardware configuration, not the Windows cache.

⚠️ Attention: Router interfaces from different manufacturers (TP-Link, ASUS, D-Link, Keenetic) vary significantly. If you can't find the section you need, consult the manual for your specific model or look for screenshots of the interface for your firmware version.

In this section, you can change your password to a more complex one or, conversely, one that's easier to remember. After changing the settings, be sure to click the "Save/Apply" button, otherwise the changes will not take effect. All connected devices will then need to be reconnected.

Is it possible to find out the Wi-Fi password if I have never connected to this network from this PC?

No, it's impossible to use Windows software to find the password for a network the computer has never accessed. Passwords are not stored in the Microsoft cloud in clear text for public access. You'll need physical access to the router or another device that already knows the password.

Why does the netsh command say "The requested profile was not found"?

This means the computer didn't save the network profile for this network. Check the spelling of the name (SSID), including capitalization and spaces. It's also possible the profile was previously deleted or corrupted. Try running the command netsh wlan show profilesto see the full list of available profiles.

Are password recovery programs safe to use?

Using legitimate utilities (such as those from NirSoft) is safe if they are downloaded from the official website. However, antivirus programs may complain about them, as these programs access sensitive data. The main rule is to avoid downloading such tools from dubious torrent trackers, where there is a high risk of file substitution by a virus.

Where is the password viewing interface in Windows 11?

In Windows 11, Microsoft updated the interface. You can now view your password in Settings -> Network & Internet -> Wi-Fi -> Manage known networks. Select the desired network and click "View" next to the security key field. The old method through the Control Panel also works.