Needing to connect a new device to a network but losing or forgetting the password is one of the most common problems in home IT administration. Fortunately, the Windows operating system stores the security keys of every network you've ever successfully connected to in its internal registry. This makes it easy to restore access to your data if you have physical access to a computer already connected to that network.
There are several proven methods for extracting saved encryption keys, ranging from the standard settings graphical interface to console commands for advanced users. The method you choose depends on your operating system version, your access rights, and whether the device is currently connected to the network. We'll cover all the current options so you can choose the most suitable one for your situation.
It's important to understand that these methods only work if your computer has previously successfully logged into the access point. If you're trying to access someone else's network without first connecting, these instructions won't help, as they aren't hacking tools. WPA2 or WPA3 encryption. Our goal is to recover lost data for the legal use of our own infrastructure.
Viewing a password through the Windows graphical interface
The easiest and safest way to find a forgotten access code is to use the standard tools in the Windows 10 or 11 operating system. This method doesn't require complex commands and is suitable for most users who want to quickly resolve the issue. You'll need to perform a few sequential steps in the network connections menu.
To begin, open your network settings by right-clicking the Wi-Fi icon in the system tray (near the clock) and selecting "Network & Internet Settings." Next, go to "Network and Sharing Center" or click "Properties" for your current connection. In the window that opens, find the "Wireless Network Properties" button and go to the "Security" tab.
It's here, in the "Network Security Key" field, that your password characters are hidden. To see them, check the "Show entered characters" box. The system may ask you to confirm administrator rights, after which the stars will turn into readable text. This method works reliably as long as you're connected to the network right now.
⚠️ Note: If the "Security" tab is missing or the confirmation button is grayed out, this may mean your account does not have sufficient privileges or your network profile is corrupted. In this case, try running the command prompt as administrator.
It's worth noting that in some corporate environments, security policies may block viewing of saved keys even for administrators. In home environments, this is extremely rare and is usually due to the use of specific network card drivers. Intel or Realtek, which can intercept control of settings.
Using the command line to recover the key
For those who prefer speed and precision, the command line (CMD) offers a powerful tool for managing network profiles. This method is especially useful if the graphical interface isn't working correctly or if you need to find the password for a network the computer isn't currently connected to but has connected to in the past.
First, you need to launch the command prompt with administrator privileges. Type "cmd" in the Windows search, right-click "Command Prompt," and select "Run as administrator." The first step is to get a list of all saved Wi-Fi profiles. To do this, enter the command:
netsh wlan show profiles
Find the exact name of the network you need in the list. Then use the following command, replacing "Network_Name" with the actual name of your profile. The key parameter here is key=clear, which forces the system to display the key in clear text:
netsh wlan show profile name="Network_Name" key=clear
In the command output, look for the line "Key Content." Your password will be listed there. This method is universal and works regardless of Windows version, starting with Windows 7, making it a great tool for system administrators.
☑️ Check before entering a command
If the command returns a "Profile not found" error, make sure you entered the network name correctly, including spaces and case. Also, keep in mind that this method retrieves data from the local Windows credential store, so it won't work if the profile has been deleted or if you've never connected to this access point from this PC.
Retrieving data via PowerShell
A modern alternative to the classic command line is PowerShell. It offers more flexible scripting and automation capabilities, but can also be used interactively for a one-time password viewing task. Its syntax is almost identical to CMD, but the runtime environment is more modern.
Launch PowerShell as administrator using the Start menu search. Enter the command to view all profiles to ensure the correct one is present:
netsh wlan show profiles
Then apply the same logic with the key parameter. Even though you're in PowerShell, the command netsh remains the standard for working with network interfaces in the Windows ecosystem. Enter:
netsh wlan show profile name="Network_Name" key=clear
PowerShell's advantage is the ability to copy output directly to the clipboard with formatting, which is convenient if the password is complex and contains many characters. You can simply highlight the text, press Enter (or right-click in older versions), and the text will be copied.
⚠️ Important: When working in PowerShell, be careful with quotation marks. If the network name contains spaces, quotation marks are required, otherwise the command will be interpreted incorrectly.
This method is especially relevant for Windows 11 users, where PowerShell is the default command shell. Its functionality is fully equivalent to CMD, but the integration with the system is deeper, which can be useful for remote administration.
Finding the password in the router's web interface
If your computer doesn't remember its password or you want to find the key for a new device, the most reliable source of truth is the router itself. By accessing the router's settings, you can not only view the current Wi-Fi password but also change it to a more complex or easier-to-remember one.
To access the admin panel, 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.1The exact address, as well as the login and password, are often indicated on a sticker on the bottom of the device. Popular brands such as TP-Link, Asus, Keenetic And Mikrotik, may have their own standard addresses.
After logging in (the default credentials are often admin/admin, unless you've changed them), go to the wireless network section. It may be called "Wireless," "Wi-Fi," "Wireless Mode," or "WLAN." Inside, find the "Security" subsection. This is where the current key is displayed in the "PSK Password," "WPA Pre-Shared Key," or "Wireless Network Password" field.
| Router brand | Typical IP address | Menu section | Password field |
|---|---|---|---|
| TP-Link | 192.168.0.1 | Wireless -> Wireless Security | Wireless Password |
| Asus | 192.168.1.1 | Wireless Network -> Professional | WPA Pre-Shared Key |
| Keenetic | 192.168.1.1 | My Networks and Wi-Fi -> Home Network | Wi-Fi network password |
| D-Link | 192.168.0.1 | Wi-Fi -> Security Settings | PSK encryption key |
It's important to note that the firmware interface is constantly being updated. The location of the options may vary depending on the firmware version. If you can't find the option you need, use the menu search within the router interface or refer to the manufacturer's manual.
What to do if you forgot your router password?
If you've changed your router's password and forgotten it, the only way to reset it is to perform a factory reset. To do this, press and hold the Reset button on the router (usually for 10-15 seconds) while the power is on. This will reset the router to its default login and password (found on the sticker), but you'll need to reconfigure your internet and Wi-Fi settings.
Viewing saved passwords through a browser
Modern browsers like Google Chrome, Yandex Browser, Edge, and Opera often prompt you to save your Wi-Fi password when you first connect, especially in Windows 10 and 11, where accounts are synced. If you've agreed to save your password, the key may be stored in your browser's password manager.
In Google Chrome and Edge, the path to the data is as follows: go to Settings (the three dots in the corner), select "Autofill" or "Profiles," then "Password Manager." In the search bar, enter the name of your network or the keyword "Wi-Fi." If the password has been saved, it will appear in the list.
To view your saved password, click the eye icon next to it. You may be prompted to enter your Windows PIN or Microsoft account password to verify your identity. This is an additional security measure to prevent unauthorized access to your data.
This method is only effective if password syncing was previously enabled. On corporate networks or when using guest browser modes, data may not be saved. It's also worth checking the sync settings in your Google or Microsoft account to ensure that data is actually being transferred to this PC.
Windows 11 specifics and new interfaces
In Windows 11, Microsoft significantly updated the Settings interface, moving many functions from the classic Control Panel to the new Settings app. This may be confusing for users accustomed to the old workflow.
To find your password in Windows 11, open Settings (Win + I), go to Network & Internet, then select Advanced network settings and then Advanced sharing settings. However, the direct path to wireless network properties is now often hidden. The fastest way is through the command prompt, as described above, or through search: type "Manage known networks" in the Settings search.
In the "Manage known networks" section, select the desired network and click "Properties." Some Windows 11 builds may display a security key field here if the system allows it. If this field isn't present, use the command prompt—this is the most reliable option for newer OS versions.
⚠️ Note: The Windows 11 interface is still being updated. The menu location may change with the release of major updates (e.g., 22H2, 23H2). If you can't find the item, use the search within the Settings window.
Windows 11 users may also encounter a requirement to use a PIN or biometrics to confirm network settings. Ensure your sign-in method is configured correctly, otherwise access to viewing passwords may be blocked.
Frequently Asked Questions (FAQ)
Is it possible to find out a Wi-Fi password if the computer has never connected to this network?
No, this is impossible using standard Windows tools. The computer only stores the keys used to successfully connect. Obtaining the password for a network you didn't have access to would require physical access to the router or knowledge of the password from the owner.
Where are Wi-Fi passwords stored in the Windows registry?
Wireless network data is stored in the system registry, but it's encrypted and protected by SYSTEM access rights. Directly reading the registry won't yield a readable password without specialized decryption utilities, so using commands netsh preferable and safer.
What should I do if the netsh command returns an "Element not found" error?
This error means that a profile with the specified name does not exist in the computer's memory. Verify the exact network name, including spaces and case. Also, make sure you are entering the command in a command prompt running as an administrator.
Is it safe to save Wi-Fi passwords in your browser?
Saving passwords in your browser is convenient, but it carries risks if someone with physical access uses your computer. We recommend using a master password for your browser or two-factor authentication for your Google/Microsoft account to protect your saved data.
Is it possible to recover the guest network password?
Guest networks often have separate passwords, which may not be saved in the user's primary profile. If you connected to the guest network as a regular user, the password should be in the profile list. If access was achieved through a captive portal, there may not be a password as such, as authorization occurs through a web page.