Needing to connect a new device to your home network but forgetting your Wi-Fi password is a common situation. Fortunately, the operating system Windows Stores data about previously connected wireless networks, allowing you to restore access without complex hacking. If your computer is already connected to the router or has been connected previously, you can extract the security key using the system's built-in tools.
There are several proven ways to obtain the necessary information: through the graphical settings interface, using the command line, or by logging into the router's admin panel. Each method has its own peculiarities, but all of them can solve the problem. without installing third-party softwareIt's important to understand that we're talking about restoring access to your own network, not unauthorized access to other people's networks.
Before you begin, make sure your device is in a strong signal reception area. The password will only be displayed for networks whose status in the system is "Connected" or which were previously saved in the profile. If the network has never been used on this PC, you won't be able to find the key directly through Windows, and you'll have to look for alternative ways.
Viewing the password through Windows network settings
The easiest and safest way to view a saved key is to use the standard operating system interface. This method doesn't require knowledge of complex commands and is suitable even for inexperienced users. The procedure is virtually identical for Windows 10 And Windows 11, although the placement of some menu items may differ slightly.
First, open the Network and Sharing Center. Right-click the connection icon in the system tray (near the clock) and select "Network and Internet Settings." Next, go to the "Status" section and find the "Network and Sharing Center" link. In the window that opens, click the name of your active wireless network.
The Wi-Fi status dialog box will appear, where you need to click "Wireless Network Properties." Go to the "Security" tab. This is where the "Network Security Key" field is located, hidden by asterisks. To see the characters, check the "Show characters" box.
⚠️ Note: If the "Security" tab is empty or the buttons are disabled, your account may not have administrator rights. In corporate networks, access to these settings is often blocked by security policies.
Using Command Prompt (CMD) to Recover the Key
For those who prefer speed and accuracy, using the console is a great option. The command line allows you to display all saved profiles and their passwords in plain text. This method is especially useful if the graphical interface isn't working correctly or you need to copy a complex password without errors.
Run the command prompt as administratoristratora. To do this, enter cmd In the search box, right-click "Command Prompt" and select the appropriate option. First, you need to find out the exact name of the network profile. Enter the command:
netsh wlan show profiles
Find your network name in the list. Then enter the command to display details of a specific profile, adding the keyword key=clearThe syntax looks like this:
netsh wlan show profile name="Network_Name" key=clear
In the command output, look for the line "Key Content." The password you're looking for will be listed in clear text next to it. If the system returns the error "Group Policy does not allow storage of network keys," this means security restrictions are enabled on the computer, and this method won't work.
☑️ Check before entering commands
Retrieving data via PowerShell
An alternative to the classic CMD is a more powerful tool - PowerShellIt not only allows you to extract passwords but also structure the output information. This method is useful for users who need to quickly obtain data on several networks at once.
Open PowerShell as administrator. Enter the following command, which will list all profiles and their passwords in a table format:
(netsh wlan show profiles) | Select-String"\:(.+)$" | %{$name=$_.Matches.Groups[1].Value.Trim; $_} | %{(netsh wlan show profile name="$name" key=clear)} | Select-String"Key Content\W+\:(.+)$" | %{$pass=$_.Matches.Groups[1].Value.Trim; $_} | %{[PSCustomObject]@{ PROFILE_NAME=$name;PASSWORD=$pass }} | Format-Table -AutoSize
The command may seem cumbersome, but it automates the process of going through all saved connections. A table will appear on the screen, with the following column: PASSWORD The access keys will be displayed. If the field is empty, the password for this network is not saved in the system.
Why does PowerShell sometimes give a script execution error?
Some versions of Windows disable script execution by default. To fix this, enter the command: Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser . This will allow local script execution while maintaining protection from remote threats.
Login to the router's web interface
If your computer isn't connected to Wi-Fi (for example, because you reset the settings or are using a cable), you can view the password directly on the router. This will require web access.eysu devices. Most modern models TP-Link, Asus, Keenetic And D-Link have similar operating logic.
Open your browser and enter the gateway IP address. This is usually 192.168.0.1 or 192.168.1.1The exact address is often indicated on a sticker on the bottom of the router. After entering the login and password (often by default admin/admin) go to the wireless network section.
Look for the tab with the name Wireless, Wi-Fi or "Wireless Mode." In the "Security" subsection, there will be a "Password/PSK" field. Here you can not only view it, but also change it to a more complex one.
| Router brand | Entrance address | Settings section | Password field |
|---|---|---|---|
| TP-Link | 192.168.0.1 | Wireless -> Wireless Security | Wireless Password |
| Asus | router.asus.com | Wireless network | Authentication Method / Key |
| Keenetic | my.keenetic.net | My Networks and Wi-Fi | Network password |
| D-Link | 192.168.0.1 | Wi-Fi -> Security Settings | PSK encryption key |
If it was changed earlier and lost, you will have to reset the device to factory settings (Reset), which will completely break the connection with all devices.
Using third-party software and utilities
There are many programs that make managing Wi-Fi connections easier. Utilities like WirelessKeyView from NirSoft or WiFi Password Revealer Can instantly display all saved keys. They read data from the Windows registry and display it in a convenient list.
However, using such software carries certain risks. Antivirus programs often view password recovery programs as potentially unwanted programs (PUP). Furthermore, downloading utilities from unverified sites can lead to system infection.
If you decide to use third-party software, make sure you download it from the developer's official website. It's best to uninstall the program after use to avoid creating additional security holes in your PC.
Home Network Security and Protection
Once you've learned or changed your password, it's time to consider the security of your access point. Using an encryption standard WPA2-Personal or the newest WPA3 is a must. The old WEP protocol can be cracked in a few minutes, even by a novice.
The password should be complex: contain mixed-case letters, numbers, and special characters. The key should be at least 12 characters long. Avoid using obvious combinations, such as your date of birth or phone number.
⚠️ Caution: Never store Wi-Fi passwords in text files on your desktop named "passwords.txt." Attackers primarily look for these types of files during remote access or virus attacks.
Update your router firmware regularly. Manufacturers often patch vulnerabilities that allow hackers to access network settings and steal your password. It's also recommended to disable this feature. WPS, as it is one of the most vulnerable entry points.
Frequently Asked Questions
Is it possible to find out a Wi-Fi password if the computer has never connected to this network?
No, this can't be done using standard Windows tools. A computer simply doesn't store information about networks it hasn't connected to. The only option is to find a device that's already connected or access the router settings via a cable.
What should I do if I forgot my router admin password?
If the password for the router's web interface (not the Wi-Fi password, but the settings password) has been changed and forgotten, a hard reset will help. There's a small hole on the router's body that needs to be pressed with a paperclip for 10-15 seconds. This will reset the router to its factory settings, and the password will be the same as the one on the sticker.
Is it safe to save a password in Windows?
Yes, it's safe if you're the only user of the computer and have a strong password set for your Windows account. If others have access to your PC, they could theoretically retrieve your saved passwords using the methods described in this article.
Why is the "Show characters" field grayed out and unavailable?
This means your current account doesn't have administrator privileges. You need to log in as an administrator or have them enter the password for you. Without elevated privileges, the system blocks viewing security keys.