Forgotten Wi-Fi password: How to recover it from a computer

A situation when you need to connect a new gadget to a wireless network, and Wi-Fi password A password that's been safely forgotten happens all the time. This can happen after reinstalling the operating system, purchasing a new router, or simply due to human forgetfulness. Fortunately, if at least one device (for example, your desktop PC or laptop) is already connected to this network or has been connected before, restoring access to the coveted numbers and letters is easy.

There are several proven ways to find out a forgotten key using built-in tools. WindowsYou don't need to download third-party software, risk viruses, or become a hacker. The system stores this data securely, but provides legal tools for the administrator to view it. The main thing is to have physical access to a computer that "remembers" the network.

In this article, we'll cover the most effective methods, from simply viewing network properties in the graphical interface to using console commands. We'll also cover what to do if your computer isn't currently connected to the network, but was connected in the past. Follow the instructions carefully to quickly restore internet access.

The fastest way is through the control panel

The most straightforward method for those who don't want to mess with code is to use the operating system's default settings. This method is ideal for users who are afraid of accidentally breaking something in the deep settings. If your computer is currently connected to Wi-Fi, the process will take literally a minute.

First, you need to open the Network Connections window. This can be done in several ways, but the most common is to use the Run command. Press the key combination Win + R on the keyboard. In the input field that appears, type the command ncpa.cpl and press EnterA list of all network adapters on your device will open.

Find your wireless connection icon (usually labeled "Wireless Network" or "Wi-Fi"). Right-click it and select "Status." In the window that opens, click "Wireless Network Properties." Go to the "Connection" tab, then click "Wireless Network Properties."

In the new window, switch to the "Security" tab. You'll see the "Network Security Key" field, where the characters are hidden behind asterisks. Check the box next to "Show entered characters." Password will immediately become visible as plain text. Copy it or write it down.

📊 How often do you change your Wi-Fi password?
Once a month
Once every six months
Once a year
Never changed

Using the Command Prompt for Advanced Users

If the graphical interface is unavailable for some reason or you prefer console commands, Command line (CMD) or PowerShell will become your best assistants. This method is good because it works even in versions of Windows where the network settings interface may differ, and it provides more granular control.

To launch the command line, press Win + X and select "Windows PowerShell" or "Command Prompt." If the system requests administrator rights, be sure to confirm them. First, we need to know the exact name of the network profile whose password we're looking for. Enter the command:

netsh wlan show profiles

In the "User Profiles" list, find the name of your network. It should match SSID (access point name). Once you've copied the network name (or memorized it exactly, including spaces and case), enter the following command, substituting the name of your network:

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

Please note: if the network name contains spaces, the quotation marks are required. After running the command, scroll down to the "Security Settings" section. We're interested in the "Key Contents" line. This is where the password you're looking for will be displayed in cleartext.

☑️ Check before entering a command

Completed: 0 / 4

What to do if your computer is not connected to the network

It often happens that you've forgotten your password, and your computer "remembers" it, but your Wi-Fi router is currently turned off or out of range. In this case, standard methods via "Status" may not work, as the system requires an active connection for some checks. However, the data in the registry remains intact.

Command line method netsh wlan show profileThe method described above often works without an active connection if the profile was previously saved. If the system returns an error about a network not being found, try resetting the network settings or using third-party password recovery utilities that can read encrypted keys from system files.

⚠️ Important: If you see a message stating that a profile was not found, make sure you are entering the network name (SSID) exactly as it is stored in the system, including capitalization. A difference of just one letter will result in an error.

It's also worth checking to see if your network is hidden. If the access point isn't broadcasting its SSID, your computer may not display it in the list of available networks, but the profile may still be saved. In this case, the only solution is to know the exact network name or reset the router.

Comparison of password recovery methods

Each of the described methods has its advantages and disadvantages. The graphical interface is more user-friendly, but may be hidden in different versions of Windows. The command line is universal, but requires careful typing. Let's compare the main characteristics of the methods.

Method Complexity Active Wi-Fi is required Speed
Control Panel Low Desirable High
Command line Average No High
PowerShell Average No High
Third-party software Low No Average

As the table shows, the standard control panel remains the best option for most users. However, if you're a system administrator or frequently work with different networks, knowledge of console commands will be a huge plus. They allow you to quickly access information without unnecessary mouse clicks.

Is it possible to see the password on a turned off computer?

No, if the computer is completely turned off and not connected to the network, it's physically impossible to find the password without accessing the router's settings. The data is stored in the PC's RAM or non-volatile memory, which is only accessible when the system is turned on.

Viewing a password using PowerShell

PowerShell — is a more powerful command line alternative built into modern versions of Windows. It allows you to not only view passwords but also manage network profiles more flexibly. Its interface is slightly more streamlined, but its functionality is broader.

Run PowerShell as administrator. To list all saved Wi-Fi profiles, use the following command:

Get-NetConnectionProfile

However, directly extracting the password in a readable format using standard PowerShell cmdlets may require a more complex script. The easiest way is to run the same command in PowerShell as in CMD, as PowerShell supports most legacy commands:

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

The result will be identical to the output from a classic command prompt. PowerShell's main advantage in this context is the ability to automate the process if you need to extract passwords from multiple computers on a corporate network, although this is overkill for a home user.

Possible problems and their solutions

Even following the instructions, you may encounter errors. Most often, these are related to access rights. If the system displays "Access Denied" when you try to view the key, it means you launched the command prompt or PowerShell without administrator rights. Close the window and relaunch it by right-clicking and selecting the appropriate option.

Another common issue is encoding. If your network name or password contains Cyrillic characters (Russian letters), they may appear as gibberish in the command line. In this case, it's better to use the graphical method via "Wireless Network Properties," which handles encoding correctly.

⚠️ Note: Operating system interfaces are being updated. The button layout in Windows 11 may differ from Windows 7 or 10. If you don't find the item you need, search for "Manage known networks" in your system settings.

It's also important to consider your organization's security policy. On work computers, access to the command prompt or viewing passwords may be blocked by group policies. In this case, it won't be possible to legally obtain a password from that computer.

FAQ: Frequently Asked Questions

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

No, that's impossible. A computer doesn't store information about networks it hasn't connected to. You need to find a device that's already connected to that network or look at the password on the router's sticker.

Where can I find the password if the router is new and has a default password?

Look at the sticker on the bottom or back of your router. It contains the SSID (network name) and PIN/Password (default password). If you've changed it but forgotten it, you'll have to reset the router to factory settings.

Are password recovery programs safe to use?

Most of these programs require administrator privileges and access to system files. Antivirus programs often flag them as potentially dangerous (HackTool) because they use the same methods as viruses to steal data. It's better to use built-in Windows tools.

What should I do if my password isn't displayed anywhere, only asterisks?

Make sure you have local administrator rights. If the "Show characters" checkbox is grayed out or hidden, your account does not have sufficient privileges to view saved security keys.

Will changing my Windows account password reset my password?

No, Wi-Fi passwords are stored separately from your Windows login password. Changing your user password will not affect saved wireless network profiles unless you manually delete them or perform a full network reset.