It's a familiar situation when friends or new clients come over and you can't remember your wireless network password. The code is often written on a sticker under the router, but if the device is in a hard-to-reach place or the sticker has worn off, the question naturally arises: where can I find the Wi-Fi code on a computer that's already successfully connected to the network? Fortunately, the operating system Windows stores this data in its memory, and it can be accessed using standard tools without installing third-party software.
Restoring access to your security key is possible in several ways: through the network settings graphical interface, using the command line, or directly through the router's web interface. Each method has its own characteristics and is suitable for different use cases, whether it's a quick view for a single device or a network-wide reset. In this article, we'll cover all the current methods, applicable to modern versions. Windows 10 and 11.
Before you start manipulating the settings, it is important to understand that to perform most of the actions described you will need administrator rightsIf you work on a corporate computer, access to these features may be restricted by your organization's security policies. At home, these restrictions are typically not in place, and you have full control over your wireless connection settings.
Viewing the password through Windows network settings
The easiest and most accessible way to find the saved key is to use the standard wireless network properties window. This method works reliably on all versions of Windows, starting with Windows 7, and doesn't require memorizing complex commands. However, the interface may vary slightly depending on the operating system version and interface updates.
First, you need to open the network management menu. Right-click the Wi-Fi icon in the system tray (near the clock) and select "Network and Internet settings" or "Open network settings." In the window that opens, find the "Network and Sharing Center" link, or simply click the name of your active connection to see the status.
⚠️ Note: If you're using Windows 11, the Settings interface has been significantly redesigned. The path may look like this: Settings → Network & Internet → Wi-Fi → Manage known networks, where you need to select the desired network and click “Properties”.
In the wireless connection status window, find the "Wireless Network Properties" button. Clicking it will open a dialog box with the "Security" tab. This is where you'll find the "Network Security Key" field, which is hidden by asterisks by default. To see the characters, check the "Show characters" box.
Once the characters are displayed, you can copy or rewrite them. This method is the most secure, as it doesn't require the command line and minimizes the risk of accidentally changing system settings. You can also see the encryption type here, for example, WPA2-Personal or WPA3, which is useful when setting up new devices.
Using the command line to get the key
For more advanced users or in situations where the graphical interface is not working correctly, the command line is a great tool. CMD or PowerShell. This method not only allows you to view the password for the current network, but also displays a list of all saved profiles with their security keys, which is especially convenient when migrating to a new computer.
The first step is to launch the command prompt as administrator. Click Win + X and select "Terminal (Admin)" or "Command Prompt (Admin)". First, we need to find out the exact name of the network profile if it is different from the SSID name. Enter the command netsh wlan show profiles and press Enter. You will see a list of all networks this computer has ever connected to.
Knowing the profile name, you can request detailed information about it. The command syntax is as follows:
netsh wlan show profile name="Network_Name" key=clear
Instead of Network_name Substitute the actual name of your Wi-Fi network. Note that if the name contains spaces, the quotation marks are required. After running the command, scroll to the "Security settings" section. The "Key Content" line will display your password in clear text.
☑️ Check before entering a command
The advantage of this method is its versatility. Even if the network adapter is temporarily disabled or the driver malfunctions, the profile information often remains in the registry and is accessible via netshThis makes the method an indispensable tool for system administrators and technical support specialists.
Finding the code through the router's web interface
If the computer you're working on is connected to the router via cable or Wi-Fi, but you don't have Windows administrator rights, you can try accessing the router's settings. To do this, you'll need the default gateway IP address and the login and password for the device's control panel.
Open any browser and enter the router's IP address in the address bar. Most often, this is 192.168.0.1, 192.168.1.1 or 192.168.31.1The exact address can be found by running the command ipconfig in the command line and find the "Default Gateway" parameter. After entering the address, the system will request authorization.
Interfaces vary greatly between manufacturers, but the search logic remains the same. You need to find the section related to wireless networking. It may be called "Wireless," "Wi-Fi," "Wireless Mode," or "WLAN." Within this section, look for the "Wireless Security" subsection.
| Router brand | Standard address | Menu section | Password field |
|---|---|---|---|
| TP-Link | 192.168.0.1 | Wireless → Wireless Security | Wireless Password |
| ASUS | 192.168.1.1 | Advanced settings → Wireless network | WPA-PSK key |
| D-Link | 192.168.0.1 | Wi-Fi → Security Settings | PSK encryption key |
| Xiaomi | 192.168.31.1 | Wi-Fi settings | Password |
This section will display the current password. Some router models hide the password field behind dots, but have a "Show" button or an eye icon next to it. If there's no such button, you can simply enter a new password and save the settings, but then you'll have to reconnect all devices in your home with the new code.
Working with profiles in PowerShell
An alternative to the classic command line is a more powerful tool - PowerShellIt provides the same capabilities through the command netsh, but also allows you to use scripts to automate the process if you need to extract passwords from multiple computers on a local network.
Run PowerShell as administrator. To obtain the password for a specific network, you can use the same command as in CMD. However, PowerShell allows you to conveniently format the output. For example, the command to export all profiles to a text file looks like this:
netsh wlan export profile key=clear folder="C:\WifiPasswords"
This command will create in the specified folder (C:\WifiPasswords) XML files for each saved profile. Inside these files, the password will be stored in the tag keyMaterial in plain text. This is an extremely useful feature for backing up network settings before reinstalling Windows.
⚠️ Warning: Files created by the export command contain sensitive information in clear text. Be sure to delete the folder containing the exported profiles immediately after use or transfer them to a secure location.
Using PowerShell is especially useful for system administrators managing a fleet of machines. Simple scripts can quickly gather information about an office's network environment. However, for the average home user, this method may seem overly complex compared to a graphical interface.
Third-party password recovery utilities
There are many specialized programs such as WirelessKeyView, WiFi Password Decryptor or Network Password RecoveryThese utilities scan the Windows registry and system databases, extracting all stored keys. They are convenient because they display the information in a clear table immediately after launch.
The main advantage of such programs is speed and clarity. You don't need to remember commands or search for the right settings tabs. However, using third-party software always carries risks. Antivirus programs may detect such programs as hacker tools (RiskWare or HackTool), as their operating principles are similar to those of viruses.
Such utilities should only be downloaded from the developers' official websites. Using cracked versions or programs from unverified torrent trackers can result in your computer being infected with real malware. Furthermore, some free versions may have a limit on the number of characters allowed in a password.
Why does my antivirus complain about password viewers?
Many antivirus programs classify password recovery utilities as "RiskWare" or "HackTool." This doesn't mean the program contains a virus. It simply uses legitimate Windows functions to access protected memory. If you downloaded the program from the official website, you can add it to the exclusions list or temporarily disable protection, but proceed with caution.
If you decide to use third-party software, be sure to check the digital signature of the executable file and read reviews from other users. For a one-time password viewing procedure, it's best to use built-in Windows tools, as they are guaranteed to be secure and don't require additional software.
Possible problems and solutions
Despite the simplicity of the procedures, users may encounter errors. One of the most common issues is lack of access rights. If the system displays "Access Denied" when attempting to launch the command prompt or view network properties, ensure you are logged in as an administrator and not a standard user.
Another common situation is that the network profile is listed, but the password isn't displayed, or the command returns an empty value. This can happen if the profile was imported from another computer without a key, or if the network settings were reset by system optimization utilities. In this case, the only solution is to reset the router to factory settings and reconfigure the network.
Group policies are also worth mentioning. In corporate networks, administrators often restrict viewing security keys through the Group Policy registry. In this case, bypassing this restriction using standard tools is impossible, as it is part of the organization's security policy.
It's also important to keep your wireless adapter drivers up-to-date. Outdated software may interfere with new Windows 10/11 security features, leading to errors when attempting to read saved data. Updating drivers from the laptop or adapter manufacturer's website often resolves these issues.
Is it possible to view the Wi-Fi password on a computer without administrator rights?
This isn't possible with a standard Windows configuration. Access to stored security keys is protected by the system and requires elevated privileges. The only option is to log in to the router's web interface, if you know the username and password, and view the settings there.
Where are Wi-Fi passwords physically stored in Windows?
Wireless network data is stored in a protected section of the Windows registry and in system configuration files. These files are encrypted and tied to the user account or system. Directly editing these files without specialized tools is impossible and dangerous.
What should I do if I forgot my router password to access the settings?
If the default combinations (admin/admin) don't work and you've changed them but forgotten, a full reset of the router is the only solution. There's a reset button on the device (often recessed). Press it with a paperclip for 10-15 seconds while the router is on. This will restore the device to its factory settings.
Is it safe to save a password in Windows?
Yes, it's safe for home use. Windows encrypts stored keys. The only risk is if an attacker with administrator rights gains access to your computer, but then they could install a keylogger or access files even without Wi-Fi passwords.