Many users are familiar with the situation of needing to connect a new device to a wireless network, but the password has long been forgotten or lost. Fortunately, the operating system Windows Saves data about previously connected access points in its own storage, making it easy to recover forgotten password combinations. This is especially useful for those who rarely change network settings but occasionally need access from friends' devices or new laptops.
There are several proven ways to extract this sensitive information, all of which don't require installing third-party malware. You can use the system's standard graphical interface, the command line, or even access the router's settings. The method you choose depends on whether you're currently connected to the network and your operating system version.
It is important to understand that all the actions described below are only legal if you are the owner of the network or have direct permission from the administrator to do so. Attempting to hack someone else's Wi-Fi network without the owner's knowledge is illegal and punishable by law. We will only consider methods for restoring access to your own saved data on your personal computer running Windows 10 or Windows 11.
⚠️ Attention: The Windows Settings interface may vary slightly depending on the operating system build you have installed. If you don't see this option, check for system updates or use alternative methods via the command line, which are more stable.
The easiest way: View through Windows settings
The most obvious and accessible method for beginners is to use the operating system's graphical interface. This option is ideal if your computer is currently connected to the target Wi-Fi network or has previously connected to one. The process is slightly different visually in Windows 10 and 11, but the logic remains the same.
First, you need to open the Network Control Panel. This can be done quickly by pressing a keyboard shortcut. Win + R and entering the command ncpa.cplIn the window that opens, find the icon for your wireless connection, right-click on it and select "State". Next, click the button Wireless Network Properties and go to the tab "Safety".
This is where the key you're looking for is hidden. You'll see the "Network Security Key" field, which is hidden by asterisks by default. To see the actual password, simply check the box next to it. "Show input characters"The system may request administrator rights to confirm the action.
- 🔑 Right-click on the Wi-Fi icon in the system tray (near the clock) and select "Network & Internet settings".
- 🔑 In the window that opens, find the link "Network and Sharing Center" (in Windows 10) or "Advanced network settings" (in Windows 11).
- 🔑 If you're using Windows 11, the path might look like this: Settings → Network & Internet → Wi-Fi → Manage known networks → Select a network → Properties.
It's worth noting that in the latest Windows 11 updates, Microsoft added a convenient "Copy" button next to the password, eliminating the need to manually retype complex characters. However, if you're not connected to the internet right now, this method may not work, and you'll need to resort to more advanced tools.
Using Command Prompt (CMD) to Recover the Key
For those who prefer speed and precision, the Windows command line provides powerful tools for managing network connections. This method is versatile and works even when the system's graphical interface malfunctions or is obscured by corporate policies.
To get started, launch Command Prompt as administrator. Type in the Start search. cmd, right-click "Command Prompt," and select the appropriate option. The first step is to get a list of all saved Wi-Fi profiles on your computer. To do this, enter the command:
netsh wlan show profiles
The system will return a list of all networks this PC has ever connected to. Find the required name (SSID) in the list. Now, to find the password for this specific network, use the following syntax, replacing Network_Name to the real name of your router:
netsh wlan show profile name="Network_Name" key=clear
After executing the command, scroll down to the output section Security Settings (Security settings). In the line Key Content (Key Content) will display the password you're looking for in clear text. This is one of the most secure methods, regardless of Windows version.
⚠️ Attention: When entering the network name in quotation marks, it's important to maintain proper case and spaces. If the name contains spaces, the quotation marks are required, otherwise the command will return a syntax error.
☑️ Check before entering a command
Getting a password via PowerShell
PowerShell is a more modern and flexible alternative to the classic command line. For network administrators and advanced users, this tool offers more structured data output and the ability to automate processes through scripts.
Run PowerShell as administrator. The logic here is similar to CMD, but the command syntax may differ. A basic query to display all profiles looks like this:
Get-NetConnectionProfile
However, to obtain passwords, it is more convenient to use a combination with netsh within PowerShell or specific cmdlets. To immediately list all profiles and their passwords in a convenient format, you can use the following script, which should be entered line by line or saved as .ps1 file:
$profiles = (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
This approach may seem complicated for a beginner, but it ensures that all saved passwords are retrieved at once in a neat spreadsheet. This is especially useful when migrating to a new computer or when quickly granting guests access to multiple networks.
If the script doesn't run, check the script execution policy on your system. You may need to temporarily enable local script execution with the command Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser.
What to do if PowerShell gives an error in red?
Most often, this error is related to insufficient access rights. Make sure you're running the shell as administrator. Also, check if your antivirus software is blocking script execution, even if it's safe.
Comparison of methods: efficiency table
To help you choose the best method for your situation, we've prepared a comparison chart. It will help you evaluate the pros and cons of each method based on your skills and current circumstances.
| Method | Necessary rights | Complexity | Works without a network connection |
|---|---|---|---|
| Graphical user interface (GUI) | Administrator | Low | No (profile required) |
| Command Prompt (CMD) | Administrator | Average | Yes (if the profile is saved) |
| PowerShell scripts | Administrator | High | Yes (if the profile is saved) |
| Router settings | Access to the router | Average | Yes (requires cable or Wi-Fi) |
As the table shows, for occasional use, the default Windows settings are most convenient. However, if you're involved in system administration or frequently work with networks, knowledge of the command line will be your greatest asset.
It's also worth mentioning that some corporate security policies may block access to certain PowerShell or command prompt functions for standard users. In such cases, the only reliable solution is to contact your organization's system administrator.
Accessing Router Settings: A Universal Method
If your computer doesn't remember the password (for example, after reinstalling the OS), but you have physical access to the router, you can find out the password through its web interface. This method is good because it shows current the key that the device is distributing right now.
To do this, connect to the router via cable or Wi-Fi (if automatic login is still enabled). Open your browser and enter the gateway 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 for entry, are usually written on a sticker on the bottom of the device.
Once in the settings menu, look for a section related to wireless networks. It may be called Wireless, Wi-Fi Settings or SecurityThere in the field WPA Pre-Shared Key or Password The current password will be displayed. You will be able to not only view it but also change it to a more complex one.
- 📡 Find the sticker on the router body with the login information (Login/Password).
- 📡 Enter the gateway IP address in the address bar of your browser (Chrome, Firefox, Edge).
- 📡 Go to the Wireless Security or WLAN Settings section.
- 📡 Copy the password from the Key or Passphrase field.
⚠️ Attention: If you previously changed your router settings password and forgot it, you'll need to reset the device to factory settings (press the Reset button). This will completely reset all internet settings, and you'll have to set up the connection again.
Third-party utilities and programs
There are many programs that automate the process of viewing saved passwords. Popular utilities like WirelessKeyView from NirSoft or WiFi Password Revealer are able to instantly display all keys stored in the Windows registry.
Using such software is convenient, but it carries certain risks. Downloading programs from untrusted sources can introduce viruses or Trojans to your computer. Furthermore, many antivirus programs flag such programs as HackTools or potentially unwanted software, as they work with confidential data.
We recommend using built-in Windows tools, as they are safe, require no installation, and leave no traces in the system. Third-party software should only be used in exceptional cases, such as when recovering data from a damaged system or exporting large numbers of profiles.
Frequently Asked Questions (FAQ)
Is it possible to find out the Wi-Fi password if I have never connected to this network from this PC?
No, it's technically impossible to find out the password for a network the computer has never connected to and whose details haven't been saved in a profile. In this case, only knowledge of the owner's password or access to the router's settings will help.
Where is the Wi-Fi password physically located if the router is new?
On a new router, the default password (if it hasn't been changed) is located on the factory sticker on the bottom or back of the device. Look for the "WPA Key," "Wireless Password," or "Wi-Fi Password" fields.
Why does the netsh command say "Group Policy is blocking access"?
This means that your organization or system settings prohibit viewing security keys. This is common in corporate networks for security reasons. There's no way to bypass this without domain administrator rights.
Is it safe to save passwords in Windows?
Yes, Windows stores them in encrypted form, linked to the user account. However, if someone gains physical access to your unlocked computer with administrator rights, they can view these passwords using the methods described above.
What should I do if I forgot my router password and resetting it doesn't help?
If a reset doesn't restore factory data, the device may be faulty or the firmware may be corrupted. In rare cases, reflashing the firmware via a UART or TFTP cable is necessary, but for home users, this often means replacing the hardware.