How to find out the password for the Wi-Fi network your computer was connected to

It's quite common to need to connect a new device to a network but forget the access key. Fortunately, if you've ever connected your desktop or laptop to the same access point, the system has saved this information in a special storage location. The Windows operating system is designed to minimize user inconvenience by automatically inserting the saved credentials when reconnecting. However, it's not always obvious to see this set of characters in plain text through the standard menu.

Restoring network access doesn't require installing third-party software or extensive programming knowledge. Simply use built-in utilities or the system's graphical interface. In this article, we'll cover several proven methods that will help you quickly. retrieve saved password from the Windows security system. We'll cover both classic methods via the Control Panel and more advanced options for experienced users.

It's worth noting that all the methods described below only work if your computer has successfully connected to this network and saved the connection profile. If the profile was deleted or you've never connected from this device, you won't be able to recover the key locally. The encryption key is stored in a secure system registry and is only accessible to the administrator or a user with the appropriate access rights. Below are detailed instructions for current OS versions.

Using the Windows 10 and 11 GUI

The easiest and safest way to find a forgotten key is to use the operating system's default settings. In Windows 10 and 11, Microsoft has slightly restructured the menu, but the logic remains the same. You'll need access to your current connection or a list of known networks. This method is ideal for those who don't want to mess with codes and commands.

To get started, open the Start menu and select "Settings" (the gear icon). Go to "Network & Internet." Here you'll see a list of available connections. If you're currently connected to the desired network, select "Properties" or "Change adapter settings." If you're looking to find the password for the network you're currently connected to, follow these steps:

  • 📡 Right-click the Wi-Fi icon in the system tray and select "Open Network & Internet settings".
  • 🔗 In the window that opens, find the link "Network and Sharing Center" (in Windows 10) or "Advanced network settings" (in Windows 11).
  • 🖱️ Click on the name of your wireless connection (blue text with status).

After completing these steps, a small wireless network status window will open. Here you'll find the button Wireless network propertiesClicking on it will take you to the properties menu, where you need to switch to the "Security" tab. This is where the character set you're looking for is hidden. Check the box next to "Show entered characters," and the system will display the password in the text field.

⚠️ Attention: If the "Security" tab is missing or the "Show characters" button is grayed out, this may mean your account doesn't have administrator rights or your network profile is corrupted. In this case, try running the command prompt as an administrator.

The interface may vary slightly depending on the Windows build. For example, in some versions Windows 11 The path to the properties may be hidden deep within the "Advanced Network Settings" menu. If you can't find the item you need, use the system search and enter the phrase "Network Status."

📊 What version of Windows are you using?
Windows 10
Windows 11
Windows 8.1
Windows 7
Other OS

Finding a password via the command line (CMD)

For users who value speed and precision, the command line offers an excellent alternative method. This method is especially useful if the graphical interface is not working correctly or if you need to find the password for a network you're not currently connected to but have a profile saved on the system. Tools netsh Allows you to manage network settings directly.

To use this method, first launch Command Prompt with administrator rights. Click Win + X and select "Windows Terminal (Administrator)" or search for "cmd," right-click, and select "Run as administrator." First, it's helpful to get a list of all saved profiles. Enter the command:

netsh wlan show profiles

In the list that appears, find the exact name of the desired network (User profiles). Pay attention to case and spaces. Then, use the following command, substituting the name of your profile:

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

After running the command, the system will generate a detailed profile report. You're looking for the "Security settings" section. Inside, find the "Key Content" line. The value to the right of the colon is your password. This method works reliably on all modern versions of Windows.

  • 🔍 Team show profiles Lists all networks ever saved.
  • 🛡️ Parameter key=clear Forces the key to be displayed in clear text.
  • ⌨️ The network name in quotation marks is required if it contains spaces.

Using the console provides more detailed information than the graphical interface. You can see the encryption type (WPA2-Personal, WPA3), authentication type, and even the last connection date. This is useful for diagnosing connection issues.

☑️ Check before entering a command

Completed: 0 / 4

Recovery via PowerShell

PowerShell is a more powerful automation tool that has replaced the classic command line. Although the syntax netsh PowerShell works here too, allowing you to use an object-oriented approach. This can be useful if you want to not only view the password, but also, for example, copy it to the clipboard or export a list of all networks.

Open PowerShell as administrator. The basic command remains the same as in CMD, as it accesses the system WLAN API. However, PowerShell allows you to create scripts. For example, you can create a variable for the network name:

$ssid = "My_Network"

netsh wlan show profile name=$ssid key=clear

PowerShell's advantage is its ability to process the output. You can filter only the line containing the key, avoiding scrolling through a huge array of text. To do this, use the operator Select-StringThe command will look like this:

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

This method is especially convenient for system administrators who need to quickly access keys on multiple computers or prepare a report. In a home environment, the difference between CMD and PowerShell is minimal, but knowing that PowerShell can be used is useful.

⚠️ Attention: When working with PowerShell, pay attention to the capitalization of commands and variable names. A syntax error can cause a command to fail, although it won't cause any harm to the system. Always ensure the network name is enclosed in quotation marks.

Viewing saved networks in the registry

Advanced users can find network information in the Windows system registry. This is where the operating system's configuration is stored. However, it's worth noting that passwords are stored there in encrypted form and are not intended for direct human reading. Extracting a key from the registry requires complex decryption, so this method is considered more of a theoretical approach or for diagnosing the presence of a profile.

The path to the branch with WLAN profiles looks like this:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles

Here you will find many folders with names in the form of GUIDs (character sets). Inside each folder there is a parameter ProfileName, which specifies the network name. However, the password itself is not present in plaintext. Special utilities exist for restoring registry keys, but their use carries security risks.

  • 🗄️ The registry contains the entire connection history, even those removed from the list of available ones.
  • 🔐 Passwords in the registry are protected by system and user access rights.
  • ⚙️ Directly editing the registry without a backup can lead to Windows instability.

If your goal is simply to find the password, using the registry is ineffective. It's much simpler and safer to use the command line, which accesses the same data but decodes it for the user legally via the operating system API.

Is it possible to recover a password if Windows has been reinstalled?

No, a clean installation of Windows deletes all saved profiles and passwords. They are stored locally on your drive and do not sync automatically unless you have a Microsoft account and have sync settings enabled.

Comparison of access recovery methods

The method you choose depends on your situation and your comfort level with computers. The graphical interface is convenient for one-time actions while you're online. The command line is indispensable if you need to find the password for a network you're not currently connected to, or if the system interface is glitching.

Below is a table comparing the key characteristics of the methods discussed. It will help you quickly navigate and choose the best option for your situation.

Method Complexity Requires admin rights Works without connection
Windows Settings (GUI) Low No (usually) No (an active profile is required)
Command Prompt (CMD) Average Yes Yes (if the profile is saved)
PowerShell High Yes Yes
Registry Very high Yes Yes (but the password is encrypted)

As can be seen from the table, command line is the most versatile tool. It requires minimal command entry and guarantees results if the network profile exists on the system. The graphical interface is easy to understand, but in newer versions of Windows 11, the path to it has become longer.

Common problems and their solutions

Even following the instructions, users may encounter difficulties. Often, the issue lies in access rights or group policy settings, especially on work computers. If the system displays "Access Denied" or hides the password field, check whether your antivirus software or corporate policy is blocking changes to network settings.

Another common issue is the missing profile from the list. If the computer has never connected to this network automatically, or if you used the "Forget Network" feature, the key information is deleted from the storage. In this case, software methods won't help, and you'll have to search for the key on the router or another device that's already connected.

  • 🚫 The "Parameter is specified incorrectly" error often occurs due to the network name being misspelled in the command.
  • 🔒 Blocking of properties tabs may be caused by a third-party antivirus.
  • 📉 If a network is not present in the profile list, this means that its data has been completely deleted.

It's also worth keeping in mind that router interfaces and security settings can change. If you've upgraded your router but left the same network name (SSID), the old password for the new device won't work, even if the Windows profile remains. In this case, the only solution is to reset the router or look for the sticker on the router.

⚠️ Attention: Operating system interfaces and router menus are subject to change. Menu item locations sometimes change in new versions of Windows. If you can't find an exact match, search for similar names or use the search in system settings.

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

No, this is impossible. A computer doesn't store information about networks it hasn't connected to. To obtain the password, you need a physical connection to the router via cable or another device that already knows the key.

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

Profiles are stored in the system folder C:\ProgramData\Microsoft\Wlansvc\Profiles\Interfaces, but the files themselves are encrypted and unreadable with a standard text editor. System commands must be used to extract the data.

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

Using unknown software carries risks. Many such programs contain viruses or miners. Built-in Windows tools (CMD, PowerShell) are completely safe and do not require additional software.

What should I do if the netsh command says "Network not found"?

This means there's no profile with that name in your computer's memory. Check the spelling of the name (case and spaces). If the network was deleted using "Forget Network," the profile is permanently lost.

Is it possible to view a password on someone else's computer without permission?

Technically, this is possible if you have physical access and administrator rights. However, such actions violate computer security laws and ethical standards. Use this information only to restore access to your networks.