How to display your Wi-Fi password on a Windows 10 computer

Needing to connect a new device to a wireless network but losing or forgetting the access key is one of the most common situations in home IT. Fortunately, the operating system Windows 10 By default, it stores passwords for every network it's ever successfully connected to in its encrypted credential vaults. This makes it easy to restore internet access without having to search for a sticker on the router or call your ISP.

There are several proven methods for extracting this information, ranging from simple GUI settings to advanced console commands. The method you choose depends on whether you're currently connected to the network or trying to recall data from a previous connection. In any case, the process doesn't require installing third-party software, as all the necessary tools are already built into the system.

It's important to understand that most of the steps described require administrator privileges on your computer. If you're working on a corporate device, your organization's security policies may block access to certain system settings or the command prompt. At home, these restrictions are typically not in place, and you can freely manage your network profiles.

View the current connection password through network settings

The easiest and fastest way to find the security key for your current network is to use the standard wireless connection properties window. This method is ideal if your computer is currently connected to a Wi-Fi network and you need to find the password. The system doesn't require any additional commands; you simply need to navigate through the settings menu.

First, open the Network and Sharing Center. You can do this by right-clicking the Wi-Fi icon in the system tray (near the clock) and selecting "Network and Internet Settings." Scroll down to the "Network and Sharing Center" link. In the window that opens, find your active wireless connection and click its name, which is usually highlighted in blue.

In the status dialog box that appears, click the button Wireless Network PropertiesHere, you're interested in the "Security" tab. This section stores critical information about the encryption type and the access key itself. By default, the "Network Security Key" field is hidden behind asterisks to protect it from prying eyes.

To see hidden characters, check the box next to "Show entered characters." The system may prompt you to confirm administrator privileges through the User Account Control (UAC) window. Once confirmed, the asterisks will turn into readable text that can be copied or written down.

⚠️ Warning: If the Security tab is missing or the fields are grayed out, it may mean that your network profile is corrupted or your account does not have sufficient permissions to view this data.

📊 How do you usually restore Wi-Fi access?
Through Windows settings
Via the command line
By resetting the router
Ask your neighbors

Using the command line to extract data

For those who prefer speed and precision, or for situations where the graphical interface isn't working correctly, the command line is a great solution. CMDThis tool allows you to interact directly with the operating system's network module, bypassing unnecessary settings windows. This method is especially useful if you need to quickly obtain information without unnecessary clicks.

Run the command prompt as administrator. To do this, click Win + X and select "Windows PowerShell (Administrator)" or search for "cmd," right-click, and select the appropriate option. First, it's helpful to get a list of all saved profiles by entering the command: netsh wlan show profilesIn response, the system will return a list of all networks whose passwords are stored in memory.

Find the desired network name in the list. Then, use the command to display detailed information about a specific profile with key disclosure. The command syntax is as follows:

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

Instead of Network_Name Substitute the exact name of your Wi-Fi network that you saw in the list earlier. If the name contains spaces, quotation marks are required. After running the command, scroll to the "Security Settings" section in the output. The "Key Contents" line will contain the password you're looking for in cleartext.

☑️ Check before entering a command

Completed: 0 / 4

This method is advantageous because it allows you to copy the result directly from the console window, eliminating the risk of errors when manually entering long characters. Furthermore, it works even in Windows versions where the graphical interface may be truncated or modified by the laptop manufacturer.

Managing Saved Profiles with PowerShell

A powerful analogue of the classic command line is PowerShellThis tool offers more flexible options for scripting and automation, but for a one-time password viewing task, its functionality, although effective, is overkill. Using PowerShell is useful if you plan to export a list of all passwords to a text file.

However, for a simple user it is enough to know that the standard commands netshThe tools described in the previous section also work perfectly in PowerShell. The interface is more modern, and text selection and copying are supported. Entering commands is similar to using CMD, but the color scheme and tooltips make the process a little more visual.

If you want to not only see the password, but also, for example, delete an old network profile that is interfering with the connection, PowerShell will also come to the rescue. The command Remove-NetConnectionProfile Allows you to manage network configurations at a deep level, but requires caution. For the average user, the functionality described above is sufficient for viewing passwords.

What to do if the command returns an error?

If you receive an error message when entering a command, check that the profile name is entered correctly. This is often due to extra spaces or incorrect letter case. Also, make sure you're running the console with administrator privileges, otherwise the system will block access to sensitive security data.

Comparison table of access recovery methods

To help you choose the right method, we've organized the main approaches into a comparison table. It will help you quickly evaluate the pros and cons of each option depending on your current situation and level of preparation.

Method Necessary rights Complexity Speed
Network Settings (GUI) Administrator Low Average
Command Prompt (CMD) Administrator Average High
PowerShell scripts Administrator High High
Third-party software Administrator/Root Low Depends on the software

As the table shows, the graphical interface is most user-friendly for beginners, while the command line is faster for experienced users. Using third-party software often requires installing additional programs, which isn't always safe or desirable in the workplace.

Restoring access to previously connected networks

You often find yourself out of range of your home network but need to connect, for example, a friend's phone or tablet. In this case, you can't simply view the active connection's properties because it's inactive. However, Windows stores a history of all networks, and you can retrieve the password from it using the registry or special utilities. However, the command line method described above is safer, as it also works with inactive profiles.

The main requirement is that the network profile must be saved in the system. If you previously selected the "Do not connect automatically" option or manually deleted the profile, the key information will no longer be stored in the system. In this case, the only solution is to physically access the router or reset its settings.

If the computer is synchronized with the account MicrosoftWi-Fi network passwords can be stored in the cloud. This means that when you sign in to your account on another Windows 10 or 11 device, you'll automatically gain access to the network without entering a password. You can check this in "Accounts" -> "Sign-in options" -> "Sync settings."

Security issues and risks of storing passwords

Storing passwords in the operating system is a double-edged sword. On the one hand, it's convenient, but on the other, if an attacker gains physical access to your unlocked computer or remotely runs a script with administrator privileges, they can easily retrieve all stored keys. safety The administrator account is critical.

Never leave your computer unlocked and unattended in public places. Even a short absence can give a hacker ample time to execute a command. netsh wlan export profile, which will export all your passwords to a text file. Use complex passwords when logging in, and be sure to enable a screen saver that prompts you for a password.

You should also be wary of malware. Some viruses and Trojans specifically search for network configurations to steal and transmit to the botnet owner. Regularly updating your antivirus software and Windows itself patches vulnerabilities that allow such malware to penetrate the system.

⚠️ Note: Operating system and router interfaces are subject to change. The location of menu items or command syntax may change slightly in new Windows builds. If the path described doesn't match, use the settings search.

Frequently Asked Questions (FAQ)

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

No, that's impossible. Windows only stores passwords that have been successfully used to connect. If the computer has never connected to a given access point, it simply won't have any information about the key in its memory.

Where is the Wi-Fi password file located in Windows 10?

Passwords are stored in the system registry and protected configuration files in the folder C:\ProgramData\Microsoft\Wlansvc\Profiles\InterfacesHowever, the files are encrypted, and simply opening them will reveal a string of unreadable characters. Decryption requires system privileges or special tools.

Why does the netsh command say "Network not found"?

You most likely made a mistake in the profile name. The name must match, down to the case of letters and spaces. First, run the command netsh wlan show profiles, copy the exact name and paste it into the command to view the key.

Are password recovery programs safe to use?

Using third-party software always carries risks. Many "password recovery" programs contain adware or viruses. Built-in Windows tools (command prompt and network properties) are completely safe and don't require downloading executable files from untrusted sources.

What should I do if I've forgotten my router password and it's not saved in Windows?

If no device remembers the password, the last option is to reset the router to factory settings. There's a button on the device. Reset, which you need to hold down for 10-15 seconds. After this, the router will revert to the factory password indicated on the sticker at the bottom, but you'll have to reset all your internet settings.