How to find out the Wi-Fi password for a Windows computer

It's a common situation to need to connect a new device to a wireless network, but the password has long been forgotten or written down on a piece of paper that's been misplaced. Fortunately, the operating system Windows By default, it stores access keys for all networks your laptop or desktop PC has ever connected to. This is designed for the convenience of automatic connection without constantly entering data, but also allows the user to recover a forgotten password combination at any time.

There are several methods to extract this information, ranging from the GUI settings to using the command line for advanced users. Windows 10 And Windows 11 offer similar but slightly different menu navigation paths, so it's important to consider your operating system version. In this article, we'll cover all the current methods in detail so you can choose the most convenient one.

Before we begin the technical steps, it's worth noting that most of the steps described require administrator rights on your computer. Without the appropriate privileges, the security system Windows will not allow you to view saved encryption keys, which is an important protection against unauthorized access.

Viewing your password through the Windows 10 and 11 graphical interface

The easiest and safest way to find a forgotten key is to use the standard operating system settings. This method doesn't require complex commands and is accessible to anyone who can open the Start menu. However, the interface may differ slightly depending on the version. OS installed on your device.

IN Windows 10 The process begins by opening the Options menu, which can be accessed with a keyboard shortcut Win + INext, go to the "Network and Internet" section and select the "Wi-Fi" tab. Depending on your system build, you may need to click the "Network and Sharing Center" link or see a list of known networks. If you're in the "Control Panel," find your active connection, click it, and select "Wireless Network Properties."

For users Windows 11 Microsoft has slightly changed the menu logic. Open "Settings," go to "Network & Internet," and then select "Wi-Fi." In the list that appears, find "Manage known networks," select the desired profile, and click "View" next to the "Network security key" field. The system will prompt you to confirm your account or sign-in PIN, after which the characters hidden by asterisks will turn into readable text.

📊 Which version of Windows do you use most often?
Windows 10
Windows 11
Windows 7 or later
Linux/MacOS
⚠️ Note: If the "View" button is grayed out or missing, make sure you are logged in as an administrator and not as a guest or limited user.

Using the command line to recover the key

For those who prefer speed and precision, or if the graphical interface isn't working correctly, the command line is ideal. This method allows you to access hidden data through the console. cmd, which is built into any version of Windows. This method is especially useful if you need to quickly copy a password without unnecessary mouse clicks.

To begin, you need to launch the command prompt as an administrator. Right-click the Start button and select "Windows PowerShell (Admin)" or "Command Prompt (Admin)". The first step is to get a list of all saved network profiles. Enter the command netsh wlan show profiles and press Enter. The system will display a list of all networks to which the computer has ever connected.

Once you know the exact name of the network you need (SSID), enter the following command, replacing "Network_Name" with the actual name of your router: netsh wlan show profile name="Network_Name" key=clearIn the report that opens, find the "Security settings" section, where the "Key Content" field will display the password you are looking for in clear text.

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

Using the console provides more detailed information about the encryption and authentication type, which can be useful when diagnosing connection issues. If you see the error message "Group profile not found," check the spelling of the network name, including capitalization and spaces.

☑️ Check before entering commands

Completed: 0 / 5

View passwords for all saved networks using PowerShell

If you need to download passwords from all networks your computer has connected to at once, the standard command line will require you to enter a command for each network separately. However, using a more powerful tool PowerShell, you can automate this process and get a complete list in a convenient format. This is especially useful for system administrators or when migrating to a new computer.

Launch PowerShell with administrator privileges. You can use a special script to get a list of all profiles and their passwords in plain text. Enter the command that will display the names of all profiles and then prompt you for the keys for each one. Although there is no single "show all" command in the basic set netsh No, you can use a loop query.

An alternative and simpler option for PowerShell is to use the export command. You can export profiles to XML files, where the password will be stored in cleartext (unless it's protected by additional TPM keys). The command looks like this: netsh wlan export profile key=clear folder=C:\WiFiPasswordsAfter execution, files will appear in the specified folder, which can be opened with Notepad and find the tag keyMaterial.

⚠️ Warning: Files exported with keys contain sensitive information. Be sure to delete the folder containing exported profiles immediately after use to prevent data theft by malware.

This method demonstrates how deeply the operating system stores connection data. Even if you've changed your router but kept the same network name, the old password may conflict, and you'll need to verify it through PowerShell will help you quickly eliminate settings desynchronization.

Comparison of access recovery methods

The choice of password recovery method depends on your computer skills and the current situation. The graphical interface is more intuitive, but requires more clicks. The command line is faster, but requires precision. Below is a table to help you decide.

Method Complexity Speed Requirements
Windows 10/11 Settings Low Average User rights
Command Prompt (CMD) Average High Administrator rights
PowerShell scripts High Very high Administration experience
Third-party software Low High Installing programs

It's worth noting that using third-party software, while convenient, carries potential security risks. Programs like WirelessKeyView NirSoft's tools are indeed capable of extracting keys, but antivirus programs often treat them as a threat, as their operating principle is similar to that of hacker tools.

Why do antivirus programs complain about password viewers?

Such utilities inject themselves into Windows system processes to read protected memory where keys are stored. Antivirus programs classify this behavior as potentially dangerous (RiskWare), even if the program itself is legitimate. Only use such programs from trusted sources.

Restoring access via the router's web interface

If your computer isn't connected to the network or you want to know a previously used password that's been changed, the most reliable source of truth is the router itself. By accessing its settings, you'll see the current encryption key. WPA2/WPA3This method is universal and does not depend on the computer's operating system.

To access the control panel, you need to know the gateway IP address. This is usually 192.168.0.1 or 192.168.1.1Enter this address in the address bar of your browser. If you have forgotten the password for logging into your router settings (administrator login/password), try the standard combinations indicated on the sticker on the bottom of the device. admin/admin.

After logging in, go to the "Wireless" or "Wi-Fi" section. The current password will be displayed in the "Wireless Password/Key" field. You can also change the network name (SSID) and set a new, more complex password if you suspect your neighbors are accessing your network.

Frequently Asked Questions (FAQ)

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

Yes, if the computer has previously connected to this network and saved the profile. Windows stores the keys of all known networks in the registry, and they can be retrieved via the command line, even if the Wi-Fi adapter is currently turned off or the network is unavailable.

What should I do if the password field in the command line is empty?

This means your account doesn't have administrator rights, or you misspelled the network name (SSID). Make sure the command prompt is running as an administrator, and the network name in quotation marks matches the name in the profile list.

Are password recovery programs safe to use?

Using trusted utilities from reputable developers (such as NirSoft) is safe, but requires caution. Always download software from official websites, as counterfeit versions may contain viruses. Standard Windows tools are safer.

Where are Wi-Fi passwords physically stored in Windows?

Passwords are stored in a protected section of the system registry and in profile configuration files. Access to them is strictly regulated by Windows permissions, preventing regular applications without elevated privileges from reading the keys.