It's quite common to need to connect a new device to a wireless network but lose or forget the password. Fortunately, the Windows operating system stores access keys for previously connected networks, making it easy to retrieve the necessary information without resetting the router. This is especially helpful if you've forgotten the complex password you once successfully entered on your primary computer.
There are several proven ways to find out security key, using standard operating system tools or third-party utilities. In this article, we'll discuss the most effective methods that work on most modern versions of Windows, including the popular versions 10 and 11, and also discuss options if the computer is currently not connected to the network.
It's important to understand that accessing saved passwords is only possible if your PC has previously successfully connected to the desired access point. If you want to find the password for a network your computer has never connected to but have physical access to the router, we'll also cover how to log in to the router's web interface.
Finding a password through the Windows graphical interface
The simplest and most obvious method, which doesn't require the command line or third-party software, is hidden within the default network settings. This method is ideal for users who prefer a visual interface and want quick results while sitting directly at a computer already connected to Wi-Fi.
First you need to open the window Network connectionsDepending on your operating system version, the path may differ slightly, but the logic remains the same. You can right-click the network icon in the system tray (near the clock) and select the appropriate menu item, or use the classic control panel.
In the window that opens, find the active wireless connection, right-click on it and select State. Next, click on the button Wireless network propertiesA new dialog box with several tabs will open in front of you, where we are interested in the tab Security.
- 🔍 Find the field called Network security key.
- 👁️ By default, the characters in this field are hidden with asterisks or dots to protect them from prying eyes.
- ✅ Check the box next to the item
Show entered characters.
After checking the box, the system will ask you to confirm the action if your account has administrator rights. Enter the administrator password if required, and the hidden characters will turn into readable text. This is your Wi-Fi password.
Please note: On some corporate computers or in guest profiles, access to network properties may be restricted by group security policies. In this case, the system may prevent you from changing the key display settings.
⚠️ Attention: If you're in a public place (a cafe, airport) and using someone else's computer, don't try to extract passwords without the network owner's permission. This could be considered an attempt at unauthorized access.
This method works stably on most home routers, such as TP-Link, Asus or Keenetic, since it reads the data stored in the Windows profile, rather than accessing the router's settings.
Using the command line to extract the key
For more advanced users or in situations where the graphical interface does not work correctly, using the command line is a great solution. CMDThis tool provides direct access to system network profiles and allows you to output information in text format, making it easy to copy and paste.
To get started, launch Command Prompt as administrator. To do this, click Win + X and select Windows PowerShell (Administrator) or find cmd in search, right click and select Run as administratorThe command will not run without administrator rights.
The first step is to find out the exact name of the network profile whose password you want to retrieve. Enter the following command and press Enter:
netsh wlan show profiles
On the list User profiles Find the name of your network. Note that the name must match exactly, including case and spaces. If you connected to the "Home_WiFi" network, you should use that name in the command.
Now enter the command to display details for a specific profile. The syntax is as follows:
netsh wlan show profile name="Your_Network_Name" key=clear
Replace Your_network_name with the actual name of your Wi-Fi network. Remember to leave the quotation marks if the name contains spaces. After running the command, scroll down to the section Security parametersThere will be a line there. Key content, where the password will be indicated in clear text.
This method is universal and works regardless of the version of Windows, be it old Windows 7 or the newest Windows 11The main advantage of this method is the ability to quickly copy a password, even if it's very long and complex, avoiding errors when entering it manually.
Viewing passwords in PowerShell
An alternative to the classic command line is a more powerful tool - PowerShellIt provides flexible options for managing network interfaces and is often used by system administrators to automate tasks, but can also be useful to the average user.
Run PowerShell as administrator. To list all saved Wi-Fi profiles, use the following command:
(netsh wlan show profiles) -replace ".*:\s+"
However, to see the password immediately, it is more convenient to use a specific query to WMI (Windows Management Instrumentation) objects, although in modern versions of Windows direct use is not possible. netsh inside PowerShell it works just as efficiently as in CMD.
However, PowerShell allows you to filter the output. For example, if you only need to find the encryption key, you can use:
netsh wlan show profile name="Name" key=clear | Select-String "Key"
Here Select-String acts as a filter, leaving only lines containing the word "Key" (or "Key" if you have an English version of the system). This is useful if the command output is too large to scroll through.
Be careful when copying the syntax.
Obtaining a password through the router's web interface
If your computer isn't connected to Wi-Fi or you want to find out the password for a new device and don't have any connected devices handy, your only option is to check the router's settings. This requires access to the router's admin panel.
Connect your computer to the router using LAN cable (Ethernet) or, if possible, connect to the same router's public guest network. Open any browser and enter the router's IP address in the address bar. Most often, this is 192.168.0.1 or 192.168.1.1.
The system will ask for your login and password. If you haven't changed them, they're located on a sticker on the bottom of the device. The standard combinations are:
- 🔑 Login:
admin, Password:admin - 🔑 Login:
admin, Password:password - 🔑 Login:
admin, Password: (empty field)
Once in the menu, look for the section related to wireless networking. It may be called Wireless, Wi-Fi, Wireless mode or WLANFind the subsection inside Security settings (Wireless Security). Right there in the field PSK Password or Password Your key will be indicated.
⚠️ Attention: If you reset your router to factory settings (using the Reset button) to log in with the default password, all settings, including the network name and Wi-Fi password, will be reset. Internet access may stop working if your ISP uses specific settings (PPPoE, VLAN) that require re-entering.
Interfaces of routers from different manufacturers (Zyxel, Tenda, Mikrotik) vary greatly, but the logic behind the security settings is usually the same. Look for the words Security, WPA, and PSK.
What should I do if the default router password doesn't work?
Most likely, the password was changed earlier. If you don't remember it, you'll have to hard reset the router using the button on the case and then set up your internet connection again.
Using third-party programs
There are many utilities designed specifically for managing wireless connections and recovering passwords. They automate the process, making it accessible even to inexperienced users who are terrified of the command line.
One of the most popular and proven programs is WirelessKeyView from NirSoft. This portable utility, requiring no installation, scans the Windows registry for saved profiles and displays them in a convenient format.
After launching the program, you will see a table with a list of all networks. You are interested in the columns SSID (network name) and Key (Ascii) (Password in plain text). The program also displays the encryption type and connection status.
Another useful utility is WiFi Password DecryptorIt operates on a similar principle, but has a more modern interface and supports additional features, such as profile backups. However, many antivirus programs may classify such programs as potentially unwanted programs (PUPs), as they access confidential data.
When using third-party software, always download it from the developers' official websites. Versions from third-party torrents may contain viruses or miners.
Summary table of recovery methods
To make it easier to compare all the methods described above, we have prepared a table that will help you choose the best option depending on your situation and level of preparation.
| Method | Complexity | Do you need network access? | Risks |
|---|---|---|---|
| Network Properties (GUI) | Low | Yes (there must be a connection) | Minimum |
| Command Prompt (CMD) | Average | No (profile required) | Minimum |
| Router web interface | High | No (cable needed) | Resetting provider settings |
| Third-party software | Low | No (profile required) | False antivirus alarms |
As the table shows, the network properties method is the safest and easiest if you're on a connected computer. The command line provides more control, and the web interface is necessary if there's no profile saved on the PC.
⚠️ Attention: Operating system and router interfaces are subject to update. The layout of menu items may change slightly in new versions of Windows or router firmware.
Remember that knowing your own network password is an important aspect of digital hygiene. Regularly changing passwords and using complex combinations will protect you from unauthorized access by your neighbors and potential attacks.
☑️ Check before resetting your router
Frequently Asked Questions (FAQ)
Is it possible to find out a Wi-Fi password if the computer has never connected to it?
It's impossible to find the password yourself, without access to the router or another device already connected to the network. Windows only stores previously entered keys. In this case, the only solution is to access the router settings via a cable or find the password on the sticker on the device (if it hasn't been changed).
Why does the command line say "Access Denied"?
This means that you have launched the command prompt (cmd) without administrator rights. Close the window and launch it again by right-clicking on the CMD shortcut and selecting Run as administrator.
Is it safe to store passwords in Windows?
Windows encrypts stored passwords, and they are tied to the user account. However, if an attacker has physical access to your computer while it's running and has administrator privileges, they can extract these passwords using utilities like WirelessKeyViewFor maximum security, use complex passwords and don't share your computer with strangers.
What should I do if I forgot my router password to access the settings?
If you changed the default password for logging into the router's web interface (not the Wi-Fi password, but the admin password) and forgot it, the only option left is to completely reset the device using the button ResetThis will restore the factory settings, including the default login password found on the sticker.