How to find the WiFi password on a Windows 10 laptop

It's common to need to connect a new device to your home wireless network but have lost or forgotten the password. Fortunately, the operating system Windows 10 has a built-in mechanism for storing access keys to previously connected networks. If your laptop has successfully connected to the router before, the required combination of characters is securely stored in the system configuration files. You can restore it using several methods, without resorting to complex third-party programs or resetting the hardware.

In this article, we'll detail the steps for extracting a security key using various methods. You'll learn how to find the password through the standard system settings menu and using the command line. cmd or a powerful tool PowerShellEach method has its own peculiarities, but all require administrator rights on the device. It's important to enter commands accurately and follow the correct steps to avoid errors when accessing system data.

Before proceeding with any technical manipulations, it's worth making sure the laptop is actually in range or has an active network connection. While in most cases, simply having the device "remember" the network is sufficient, having a current connection simplifies navigation. Let's look at the first and most accessible method for the average user, using the operating system's graphical interface.

Finding a password through network settings and sharing

The simplest and most visually understandable method doesn't require complex commands. It's ideal for those who prefer working with a graphical interface. Windows 10First, you need to open the network connections window. You can do this by right-clicking the network icon in the system tray (near the clock) and selecting "Network and Internet settings," or through the Control Panel using the classic method.

In the settings window that opens, find the "Network and Sharing Center" link. On the left side of the screen, select "Change adapter settings." A list of all network interfaces will appear. Find the icon Wi-Fi, which is currently active (it shouldn't be crossed out or grayed out). Right-click on it and select "Status."

In the small wireless network status window, click the "Wireless Network Properties" button. A dialog box will open, where you should switch to the "Security" tab. This is where key encryption settings are stored. You'll see the "Network Security Key" field, but the characters in it will be hidden by dots. To see them, check the "Show entered characters" box.

After checking the box, the system may ask you to confirm administrator rights. Enter your account password or confirm the action in the window. UAC (User Account Control). The characters in the key field will change to readable text. This is the password you are looking for for your Wi-FiCopy it or write it down so you don't forget.

⚠️ Attention: If the "Security" tab is missing or the "Properties" button is grayed out, this may mean your account doesn't have administrator rights, or the network driver isn't working properly. In this case, try updating the device drivers or sign in with an account with full rights.

It's worth noting that this method only reveals the password for the network you're currently connected to. If you need to find out the password for a different, previously used network, this method won't work, and you'll have to use the command line.

Using the CMD command line to recover the key

Command line cmd — is a powerful operating system management tool that allows access to hidden configuration settings. It can be used to list all saved Wi-Fi profiles and find their passwords. To launch, press the key combination Win + R, enter cmd and press Enter, or search for "Command Prompt" in the Start menu, right-click it and select "Run as administrator".

The first step is to get a complete list of all wireless networks the laptop has ever connected to. To do this, enter the command:

netsh wlan show profiles

The system will return a list of all profiles. Find the desired network name (SSID) in the list. If the network name contains spaces, you must enclose it in quotation marks for further use. Now that you know the exact profile name, you can request the security key. Use the following syntax:

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

Replace Network_Name to the actual name of your router. After the command runs, scroll down to the "Security Settings" section. The "Key Contents" line will display the password in clear text. This method is universal and works even if the network is not currently active, as long as the profile is saved in Windows memory.

What to do if the command fails?

Make sure you're running the command prompt as an administrator. Without elevated privileges, the system won't allow you to view saved security keys. Also, check that the profile name is spelled correctly, taking into account the case of the letters.

Retrieving data via PowerShell

An alternative to the classic command line is the shell PowerShellIt provides more flexible options for working with network interfaces and is often used by system administrators. PowerShell must also be launched with administrator privileges. Search for it in the Start menu, right-click, and select the appropriate option.

To list all profiles in PowerShell, you can use the same command as in CMD, or a more specific one:

netsh wlan show profiles

However, PowerShell allows you to use scripts for automation. For example, you can create a simple script that will list all network names and their passwords. Enter the following code:


$profiles = netsh wlan show profiles | Select-String -Pattern "All User Profile"

foreach ($profile in $profiles) {

$profileName = ($profile -split ":")[1].Trim()

$password = netsh wlan show profile name="$profileName" key=clear | Select-String -Pattern "Key Content"

$passValue = ($password -split ":")[1].Trim()

Write-Host "Network: $profileName | Password: $passValue"

}

This script will automatically loop through all saved profiles and display their names and passwords. This is especially convenient if you need to quickly access data from multiple networks without manually entering commands for each one. Be careful when copying the code to avoid breaking the syntax.

📊 Which method do you find more convenient?
Through the graphical interface
Via the command line CMD
Via PowerShell
Using third-party programs

Analyzing and managing saved profiles

Managing saved profiles involves not only viewing passwords but also deleting old or unnecessary entries. Over time, dozens of profiles for public networks, cafes, and hotels can accumulate in your laptop's memory. This not only clutters the list but also potentially reduces security, as the device may attempt to automatically connect to open and insecure hotspots with similar names.

To delete a specific profile, use the command in the command line (as administrator):

netsh wlan delete profile name="Network_Name"

If you want to delete all profiles at once, you can use the command:

netsh wlan delete profile name= i=

After clearing the list, it's recommended to reconnect to your home network by entering the password. This ensures that only the current and secure profile is remembered. Regularly clearing the network list is a good practice for maintaining order in your network settings. Windows 10.

Below is a table comparing the methods considered by key parameters:

Method Complexity Requires admin rights Shows only the active network
Graphical interface Low Yes (for viewing) Yes
Command Prompt (CMD) Average Yes No (any profile)
PowerShell High Yes No (any profile)
Third-party utilities Low Yes Depends on the program

Possible errors and how to fix them

During the password recovery process, users may encounter various system errors. One of the most common is "Network not found" or "Profile does not exist." This occurs if the profile name is entered incorrectly. Keep in mind that the command is case-sensitive and space-sensitive. Use quotation marks if the network name contains spaces, for example: name="My Home Wi-Fi".

Another common issue is the absence of the "Security" tab in network properties. This often occurs if the network adapter is running in compatibility mode or the driver doesn't support key management via the GUI. In this case, switch to the command line, which accesses deeper system levels.

If the system displays "Access Denied" even when running as administrator, check your antivirus software. Some security solutions block attempts by programs or scripts to read saved passwords, viewing this as a potential threat. Temporarily disable your antivirus or add an exception for the command line.

⚠️ Attention: Operating system interfaces and driver versions are subject to update. The location of some menu items or command syntax may vary slightly between Windows 10 builds (Home, Pro, Enterprise) or after major updates. Always consult the latest Microsoft documentation if standard commands don't work.

Security issues and data protection

Understanding how easy it is to obtain a Wi-Fi password on an already connected device highlights the importance of the physical security of the laptop itself. Anyone with administrator access to your unlocked computer can easily obtain the keys to all networks. Therefore, setting a strong password for your Windows account is a critical security measure.

Also, don't store passwords in unprotected text files on your desktop or in notes. If an attacker gains access to your system, they can not only view your current password but also copy the history of all networks ever used. Use disk encryption, such as BitLockerto protect data in case your laptop is stolen.

It's also recommended to change your router password regularly, especially if you suspect unauthorized access to your network. Changing the security key will force all devices to reconnect, and old saved profiles will no longer work until a new password is entered. This is an effective way to "kick" uninvited guests out of your network.

Is it possible to find out the Wi-Fi password if the laptop is not currently connected to the network?

Yes, you can. If your laptop has previously successfully connected to this network and saved the profile, you can find the password through the command line (CMD) or PowerShell, even if the router is currently turned off or out of range. Commands netsh wlan show profile access the Windows stored profile database rather than the active connection.

Why is the Network Security Key field hidden in the properties?

This is a standard security measure in the Windows operating system designed to prevent unauthorized people from accidentally viewing your password by peering over your shoulder. Displaying the characters requires administrator permission, ensuring that only the owner or a trusted person can access this information.

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

Without an administrator password or the ability to reset it, you won't be able to view saved Wi-Fi passwords using standard Windows tools. The system blocks access to sensitive data. In this case, you can try resetting the router itself using the reset button. Reset (if you have physical access to the device) and set up the network again with a new password that you will definitely remember.

Do these methods work on Windows 7 or 8?

Yes, the methods described, especially using the command line netsh and the graphical interface through the Network and Sharing Center are fully compatible with older versions of Windows, including 7 and 8. The command syntax and menu structure in these versions are almost identical to Windows 10.