How to find your Wi-Fi password on Windows 10: step-by-step instructions

It's quite common to need to connect a new device to the network but lose or forget the access key. Users often change router settings, forget complex character combinations, or simply don't remember where they wrote down their login information. Fortunately, the operating system Windows 10 stores information about previously connected wireless networks in a secure form, allowing you to restore this data if necessary.

Restoring access is possible without using third-party software if you have physical access to a computer that is already connected to the desired network or has previously connected to it. System utilities allow you to retrieve saved encryption keys, but this requires administrator rights. It's important to understand that this is specifically about recovering the password for your own device, not hacking into other people's networks.

There are several proven methods, ranging from simply viewing connection properties to using the command line for advanced users. The method you choose depends on whether you're currently connected to the network or just within range. In any case, the process takes no more than a few minutes if you follow the correct steps.

Viewing the password through network settings

The easiest and most accessible way to view the saved key is to use the operating system's graphical interface. This method is ideal if your computer is currently active on the desired network. You don't need to enter complex commands or use the terminal; simply navigate through the settings menu.

To get started, open the Start menu and select Settings, then go to the section Network and InternetIn the window that opens, select the "Status" tab and find the "Network and Sharing Center" link. In the new window, click the name of your current connection (the blue link next to "Connections").

A status dialog box will open, where you need to click the "Wireless Network Properties" button. Go to the "Security" tab. This is where you'll find the information you're looking for. By default, the "Network Security Key" field is hidden by asterisks. To see the characters, check the "Show characters" box.

⚠️ Note: If the "Show characters as you type" option is grayed out, this means the current user does not have administrator rights. You will need to log in with an account with full rights or ask an administrator to perform this operation.

After removing the mask, you'll see the full password, which you can copy or write down. This method works reliably across all builds. Windows 10 And Windows 11However, it has a limitation: you can only see the password for the network you're currently connected to. Viewing the history of other networks requires other tools.

Using the command line to restore

A more flexible and powerful tool is the command line. CMDIt allows you to not only retrieve the password for the active network but also display a list of all previously saved profiles and find their access keys. This method is especially useful if the graphical interface is not working correctly or you need to quickly retrieve data without unnecessary clicks.

Launch Command Prompt as administrator. To do this, right-click the Start button and select "Windows PowerShell (Administrator)" or search for "cmd," right-click, and select "Run as administrator." In the window that opens, enter the following command to view all saved profiles:

netsh wlan show profiles

The system will display a list of all networks this computer has ever connected to. Find the desired name (SSID) in the list. Next, use the command to display detailed information about a specific profile, adding the key parameter:

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

Instead of Network_name Enter the exact name of your Wi-Fi network as it appears in the list. Note that if the name contains spaces, it must be enclosed in quotation marks. In the command output, find the "Security settings" section. The "Key Content" line will contain the password you're looking for in cleartext.

☑️ Check before entering a command

Completed: 0 / 4

This method is universal and works even when network services are temporarily unstable. The main thing is to carefully enter the profile name, maintaining proper capitalization. The system often forgives minor capitalization errors, but not space errors.

Retrieving data via PowerShell

An alternative to the classic command line is a more modern tool - PowerShellIt provides similar functionality, but with more flexible filtering and data output options. For most users, the difference between CMD and PowerShell in this context is minimal, but the command syntax remains the same, as they use the same underlying network management system.

Launch PowerShell as administrator. Enter the same command as in Command Prompt to see a list of profiles:

netsh wlan show profiles

Then run the command to display the key. PowerShell also supports outputting results in XML or list format, which can be convenient for scripts, but for a one-time view, the standard text output is sufficient:

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

In the report that opens, look for the field Key ContentIf the system returns the error "Group Policy does not allow the user...," this means that security restrictions are in place on the corporate network that block key viewing. In a home environment, such errors are rare.

⚠️ Note: Command line interfaces are language sensitive. Commands netsh, wlan, show, profile, name, key, clear are always entered in Latin letters only, regardless of the system language.

Using PowerShell is preferable if you plan to automate the process or save connection logs. For the average user, the results will be identical to using CMD, but PowerShell often responds more quickly to queries in modern versions of Windows.

📊 Which password recovery method do you find more convenient?
Via network properties (GUI)
Via the command line (CMD)
Via PowerShell
Using third-party programs

Comparison of access recovery methods

Each of the methods discussed has its advantages and disadvantages. The graphical interface is the most intuitive, but is limited to the active connection. The command line provides full access to the entire connection history, but requires memorizing the syntax. Below is a table to help you choose the best method based on your situation.

Criterion Network Settings (GUI) Command Prompt (CMD) PowerShell
Access to history Current network only All saved networks All saved networks
Complexity Low Average Average
Requirements User rights Administrator rights Administrator rights
Speed Slower (many clicks) Quick (copy-paste) Quick (copy-paste)

As you can see from the table, network properties are sufficient for a one-time check of the current password. However, if you're reinstalling your router and need to remember passwords for your neighbors' networks (with their permission) or for an old office you visited, the command line is the undisputed choice.

It's important to note that all these methods operate at the operating system level. They don't interact directly with the router, but merely read data from the Windows registry, where it's stored in encrypted form until accessed with administrator privileges.

Common mistakes and how to solve them

Users often encounter technical obstacles during the password recovery process. The most common issue is a lack of administrator rights. Without these rights, the system blocks access to sensitive security data, and fields will remain hidden or commands will return an access error.

Another common mistake is an incorrect profile name. In the command netsh The name must match exactly. If the network is called "Home Wi-Fi" and you enter "HomeWiFi," the system will respond that the profile was not found. Use the profile list command to copy the name exactly, or be careful with spaces and case.

What to do if the command fails?

Make sure you're running the terminal as an administrator, not just a user. Also, check whether your antivirus or corporate policy is blocking network commands. In rare cases, restarting the "WLAN AutoConfig" service may help.

It's also possible that the password has been recovered, but the device won't connect. This could mean the password was changed on the router after your PC was last connected. In this case, the old password in Windows will be invalid, and you'll need to "forget" the network in the settings and re-enter the new key.

⚠️ Warning: If you work in a corporate environment, attempting to extract passwords may be considered a violation of company policy by the security team. Ensure your actions are approved by the IT department.

Security measures for storing passwords

Understanding how easy it is to recover a password highlights the importance of physical device security. Anyone who gains access to your unlocked computer with administrator rights will be able to obtain the keys to all your networks. Therefore, it is not recommended to leave your PC unattended with an active session.

Use strong passwords for your Windows account. If an attacker logs in, they can easily launch a command prompt and access your Wi-Fi keys. Two-factor authentication and biometrics also enhance security.

Change your router passwords regularly, especially if you suspect unauthorized access to your network. After changing your router password, all devices will need to reconnect with the new key, which will automatically update the data in the Windows storage.

Questions and Answers (FAQ)

Is it possible to find out a Wi-Fi password if the computer has never connected to this network?

No, the Windows operating system only stores passwords that have been entered and saved on a specific device. If the computer hasn't connected to the network, there's no information about the key in its memory.

Is it safe to use third-party password recovery programs?

Using third-party software carries risks. Many such programs contain adware or malicious code. Standard Windows tools (CMD, PowerShell, Settings) are completely safe and do not require additional software.

What should I do if I forgot my PC administrator password?

Without an administrator password, you won't be able to retrieve saved Wi-Fi keys using standard tools. You can try resetting your account password if you're using a Microsoft account through the recovery website, or use a local password reset if you've created recovery discs.

Is the password saved in the Microsoft cloud?

Yes, if Windows settings sync is enabled, Wi-Fi keys can be stored in the Microsoft cloud and automatically restored when you sign in to your account on a new device. However, you typically can't access them directly through the Microsoft web interface; they are synced automatically.