The situation where you need to connect a new device to a wireless network, but you've long forgotten the password or written it down on a piece of paper that's been misplaced, is familiar to many. Fortunately, the operating system Windows 10 Stores data about previously successful connections in a secure registry, making it easy to retrieve without router administrator rights. This built-in convenience eliminates the need to reset the router to factory settings or search for the ISP contract.
There are several proven methods for restoring access, ranging from a simple graphical interface to the command line for advanced users. The choice of a specific method depends on whether you're currently connected to the network or plan to do so later, as well as your comfort level with system utilities. In this article, we'll cover each of the available options in detail.
Security No data is compromised in this process, as you only gain access to the keys already stored on your computer. However, you should exercise caution when sharing this data with third parties. Below are step-by-step instructions that will help you resolve the issue in minutes.
Checking the password through the Network and Sharing Center
The easiest and fastest way to find out security key — Use the operating system's standard graphical interface. This method is ideal for users who prefer visual control and don't want to mess with code. You'll need access to a computer that's currently connected to the desired network or has previously connected to it.
First, open the network status window. Right-click the Wi-Fi icon in the system tray (near the clock) and select "Open Network & Internet Settings." In the window that opens, find the "Network and Sharing Center" link or simply search for "Network Status" in the Start menu. Once in the appropriate section, find your active connection and click its name (blue text with a wireless icon).
In the dialog box that opens, click "Wireless Network Properties." Go to the "Security" tab. This is where the information you're looking for is stored. By default, the "Network Security Key" field is hidden behind asterisks to protect it from prying eyes. To see the characters, check the "Show characters" box.
⚠️ Note: If you don't see the "Properties" button or it's grayed out, your account may not have administrator rights on this computer. In this case, ask the PC owner to perform these steps or use the command prompt if your rights allow you to run the console.
Once the symbols are displayed, you can rewrite or copy them. Please note that in some corporate networks using certificates 802.1x, this method may not work, since authorization is not by password, but by digital key. For home networks WPA2-Personal This method is the most effective.
☑️ Check access via GUI
Using the CMD command line
If the GUI is unresponsive or you prefer speed, the command line CMD will be a great tool. This method not only allows you to see the password for the current network but also displays a list of all saved profiles on your computer. This is especially useful if you want to connect to a network you're not currently connected to but have connected to in the past.
To launch the utility, click Win + R, enter cmd and press Enter. To get a complete list of all networks ever saved, enter the command:
netsh wlan show profiles
In the "User Profiles" list, you'll see the names of all available networks. Find the desired name (SSID) and use it to get detailed information. The command to display the password looks like this (replace "Network_Name" with the actual name of your router):
netsh wlan show profile name="Network_Name" key=clear
In the command output, find the "Security Settings" section. The "Key Content" line will contain the password you're looking for in cleartext. This method works even if the network is currently unavailable, as long as the profile is saved on the system.
What to do if the command is not found?
Make sure you've entered the profile name correctly. It's case-sensitive and must match exactly, including spaces. If the name contains spaces, be sure to enclose it in quotation marks.
Recovery via PowerShell
A powerful tool PowerShell offers an alternative to the classic command line with more flexible filtering options. While the syntax may seem more complex, the result is more structured. This method is especially suitable for system administrators or those accustomed to working with scripts.
Run PowerShell as administrator. To get a list of all profiles and their passwords in one convenient place, you can use the following script. It will automatically loop through all saved profiles and display their names along with their keys:
$profiles = netsh wlan show profiles | Select-String -Pattern " : "
foreach($profile in $profiles){
$profileName = ($profile -split ":")[1].Trim()
$password = netsh wlan show profile name="$profileName" key=clear | Select-String -Pattern "Key Content"
$pass = ($password -split ":")[1].Trim()
Write-Host "SSID: $profileName | Password: $pass"
}
When you first launch the system, you may be asked to confirm that you want to run scripts. Enter Y or A to continue. This method allows you to quickly export all passwords if, for example, you plan to reinstall Windows and want to save all connection data.
⚠️ Warning: When working with PowerShell, pay attention to syntax. Incorrect parentheses or quotation marks can cause the script to fail or generate an error. Copy the entire code to avoid typos.
Usage PowerShell It also allows you to automate the process by saving the code to a file with the extension .ps1This is convenient for IT specialists who frequently need to set up new workstations. However, for a one-time access restoration, it's enough to copy and paste the commands manually.
Analysis of saved profiles and priorities
Windows 10 can store dozens of connection profiles. Sometimes your computer automatically connects to a network with a weak signal, ignoring a more powerful router whose password you're trying to find out. Network priority management helps you determine which network the system considers primary.
Using the command netsh wlan show profiles Shows not only the names but also the priority order (although it's not always obvious in the basic output; the system tries to connect from top to bottom). If you see a guest network called "Free_WiFi" and your home network called "Home_Net" in the list, and your computer is connecting to the former, you should either forget the guest network or change the priority.
To delete an old or unnecessary profile, use the command:
netsh wlan delete profile name="Name_of_unneeded_network"
This will clear the list and speed up the connection process to the desired access points. It's also useful if you've changed the password on your router, but your computer keeps trying to connect with the old key, returning an error.
| Parameter | Description | Where to find |
|---|---|---|
| SSID | Wireless network name | List of available networks |
| Security type | Encryption type (WPA2, WPA3) | Security properties |
| Key Content | The password (key) itself | Security tab / CMD |
| Network type | Private or public | Network and Sharing Center |
Problems with access and administrator rights
A common problem when trying to find out a password is the lack of necessary rights. Operating system Windows enforces strict security, so a standard user may not always be able to see security keys. If you receive an "Access Denied" error when running commands in CMD, run the console as an administrator.
To do this, find "Command Prompt" in the Start menu, right-click, and select the appropriate option. Restrictions may also be imposed by group policies in corporate networks. In this case, even as an administrator on the local PC, you may not be able to access the password registry.
Another problem is a corrupted network profile. If Windows is glitching and won't show the password even if you have permission, try resetting your network settings. Go to Settings → Network & Internet → Status → Network reset. Please note that after resetting, all saved passwords will be deleted and you will have to re-enter them for all devices.
⚠️ Note: Resetting your network will delete all saved Wi-Fi profiles and VPN settings. Use this method only if other methods have failed and you are ready to set up your connections again.
FAQ: Frequently Asked Questions
Is it possible to find out a Wi-Fi password if the computer has never connected to it?
No, this can't be done using standard Windows tools. A computer doesn't store information about networks it hasn't connected to. The only option is to check the sticker on the bottom of the router (if the password is default) or access the router settings via a LAN cable if you have physical access and router administrator rights.
Where are Wi-Fi passwords stored in the Windows 10 registry?
Profile data is stored in the system registry at the following path: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\ProfilesHowever, the keys themselves are encrypted and stored in a secure area of the system. Directly reading the registry won't give you the password in cleartext without the use of special decoding utilities, so using commands netsh is a standard and safe method.
Why is the Network Security Key field grayed out and unavailable?
This means your current account doesn't have administrator privileges. You'll need to either log in as an administrator or ask the computer owner to enter the password for you. Alternatively, you can try running the command prompt as an administrator if the system allows (via UAC).
Does this method work for 5GHz networks?
Yes, the frequency band (2.4 GHz or 5 GHz) doesn't matter for the password recovery process. The methods via CMD, PowerShell, or the graphical interface are universal and work the same for any Wi-Fi standard (802.11n, ac, ax), as the password is stored in the software profile and is not dependent on the physical transmission medium.