It's quite common to need to find a saved password for a wireless network. You might have connected a new laptop, a friend's laptop, or a smart TV, but can't remember the complex combination of characters you once created. Luckily, the operating system Windows 10 stores this data in a secure form, and it can be retrieved without third-party software.
The most reliable and fastest way to do this is to use the built-in utility. netsh Via the command line. This method doesn't require installing additional programs that may contain adware or viruses. You get direct access to the system's network settings, ensuring a secure process and instant results.
In this article, we'll detail the steps, examine possible errors, and learn how to manage connection profiles. You'll learn how to find the right profile among multiple saved networks and how to display the security key in a readable format. This is a basic administration skill that every PC user should have in their arsenal.
Launch Command Prompt with Administrator Privileges
The first step to executing system commands is obtaining the necessary privileges. Standard user mode won't allow you to make changes or request network data. You must run the console as an administrator, otherwise the system will return an access error when attempting to request keys.
There are several ways to open the desired tool. The fastest is to press a key combination. Win + X and select "Windows PowerShell (Admin)" or "Command Prompt (Admin)". You can also use the search in the taskbar by entering the query cmd, then right-click on the found application and select the appropriate launch mode.
Once the black console window opens, make sure the title contains the path C:\Windows\system32\cmd.exe and have administrator rights. If the system interface is in English, look for Command PromptSome Windows 10 builds may open PowerShell by default, which is acceptable since it supports the commands we need.
⚠️ Important: Do not close the console window while performing operations, especially if you plan to use the command history. Restarting with administrator privileges may be required for each new session.
The command line interface may seem intimidating to beginners, but it provides direct control over the operating system. Unlike a graphical interface, there are no unnecessary buttons, only clear instructions. This eliminates the risk of misclicking and speeds up work for experienced users.
Viewing a list of saved Wi-Fi profiles
Before requesting a password, you must know the exact name of the profile whose key you are looking for. Your computer may store dozens of records of previously connected networks, including open access points in cafes and secure home routers. To display a complete list, use the command netsh wlan show profiles.
Enter this command into the console and press Enter. The system will generate a report, focusing on the "User Profiles" section. This section lists all networks connected to this user account. Names may display incorrectly if they contain special characters or use a different encoding than the system default.
If the list is too long to fit on the screen, you can scroll or add a filter. However, in most cases, the desired network will be at the top of the list, as the system sorts them by frequency of use or date added. Remember or write down the exact profile name, including case and spaces.
- 📡 Profile name - This is the exact network name (SSID) that you saw when you connected.
- 📁 Location — profiles are stored in the system registry and Windows configuration files.
- 🔒 Security type — the list may also display the encryption type, for example, WPA2-Personal.
It's important to understand the difference between the network name and the profile name. Sometimes they're the same, but if you've connected to a network with the same name before (for example, after changing your router), Windows may have added the suffix "2" or "3." In the command, you need to specify the exact name that appears in the profile list.
Obtaining the password for a specific network
Once you've decided on a name, the most important step comes. We need to request the system to display the security key in clear text. To do this, use the extended command with the parameter key=clearWithout this parameter, the system will only display the encryption type, hiding the password itself with asterisks.
The command syntax is as follows: netsh wlan show profile name="Network_Name" key=clearPlease note that if the network name contains spaces, it must be enclosed in quotation marks. If there are no spaces, you can omit the quotation marks, but using them is never an error.
netsh wlan show profile name="HomeWiFi" key=clear
After entering the command and pressing Enter, scroll up to the "Security settings" section. We're interested in the "Key Content" line. The password you're looking for will be displayed in plain text next to it. Copy it carefully, observing the case of the characters.
☑️ Check before entering a command
If instead of a password you see a message stating that the settings are not displayed, this means your account does not have sufficient privileges, or the profile was saved only for the current user, and the console was launched in a different context. Make sure you are logged in under the same account that connected.
Analysis of connection security parameters
Team show profile provides much more information than just the password. It's a full diagnostic report that helps understand why the network may be unstable or why a device won't connect. The command output contains a wealth of technical details.
Pay attention to the encryption type. The standard nowadays is WPA2-Personal or WPA3If you see an outdated standard WEP or simply WPA (without the 2) is a sign of poor network security. Such networks are easily hacked, and the password in this case only protects against random neighbors, not hackers.
| Parameter | Description | Recommended value |
|---|---|---|
| Authentication | Authentication method | WPA2-Personal |
| Cipher | Data encryption type | CCMP |
| Security key | Availability of a key | Present |
| Key Content | The password (key) itself | Your password |
The report also shows the number of connections to a given network and the date of the last successful connection. This is useful for auditing: if you see a network you haven't connected to in years, or whose name is unfamiliar, you might want to delete that profile to prevent automatic connections to suspicious access points.
⚠️ Note: Wi-Fi adapter driver interfaces may vary. Some manufacturers (Intel, Realtek, Broadcom) may display slightly different parameters, but the "Key Content" field is always present.
Deleting and managing connection profiles
Accumulating old profiles can lead to conflicts, especially if you've changed your router but left the same network name. Windows may attempt to apply old security settings to the new hardware, causing connection errors. In such cases, it's best to delete the profile and recreate it.
To remove, use the command netsh wlan delete profile name="Network_Name"After running this command, the network entry will disappear from the list, and all saved passwords for it will be deleted. The next time you connect, the system will prompt you for the key again.
What to do if the profile is not deleted?
If the system displays "Access Denied" even when running as administrator, try stopping the Connection Manager (WlanSvc) service via services.msc, deleting the profile, and restarting the service. However, in 99% of cases, administrator privileges in CMD are sufficient.
There's also the option to export profiles to an XML file. This is useful for backing up settings before reinstalling Windows. The command netsh wlan export profile folder="C:\Backup" key=clear Save all profiles with passwords to the specified folder. You can then import them on another computer.
- 🗑️ Cleaning — delete public network profiles (airports, cafes) that you no longer use.
- 💾 Backup - Save home network profiles before formatting the disk.
- 🔄 Reset - If the network is not working, deleting the profile often solves the problem faster than resetting the network settings.
Managing profiles via the command line gives you a sense of complete control. You're no longer dependent on a graphical interface that might crash or become unresponsive. Text commands execute instantly and produce predictable results, which is especially valuable when administering remotely or working via the terminal.
Solutions to common errors
When working with netsh Users often encounter several common problems. The most common is the error "WLAN AutoConfig service is not running." Without this service, managing wireless networks in Windows is impossible. You can check its status with the command sc query wlansvc.
If the service is stopped, start it with the command net start wlansvcAfter this, try viewing the profile again. Syntax errors are also possible if you misspelled the network name. Check for spaces and special characters. Sometimes using single quotes instead of double quotes helps, although the standard requires double quotes.
Another issue is encoding. If the network name contains Cyrillic characters and the console is set to OEM encoding (the default), commands may not execute correctly. In this case, before entering commands with Russian names, enter chcp 65001 to switch to UTF-8, although this is usually not necessary for Latin names.
Keep in mind that antivirus software or corporate security policies may block access to saved passwords, even for administrators. In such cases, displaying the key will be prohibited at the group policy level, and standard tools will not be able to bypass this.
FAQ: Frequently Asked Questions
Is it possible to find out the password for a Wi-Fi network I'm not currently connected to?
Yes, you can. The command line accesses saved profiles in the Windows registry. If your computer has ever connected to this network and saved a profile, you'll be able to retrieve the password even if Wi-Fi is currently off or you're out of range of the router.
Will the password be visible if the network is hidden (SSID hidden)?
Yes, if you've ever manually connected to a hidden network, Windows has saved its profile. In the profile list, it may appear as "Hidden Network" or by name if you specified one when connecting. The command show profile It will work if you specify the profile name correctly (the one you specified or the one the system assigned).
Where are these passwords physically stored on disk?
Passwords are stored in encrypted form in system configuration files located at the path C:\ProgramData\Microsoft\Wlansvc\Profiles\InterfacesHowever, these files cannot be simply opened with a text editor—they are in binary format and protected by system permissions. Decryption occurs on the fly using the netsh utility, using user-supplied keys.
Does this method work on Windows 7 and 8?
Yes, team netsh wlan Supported in all modern versions of Windows, starting with Vista SP2. The command syntax remains virtually identical across all versions, so this instruction is universal for most current Microsoft operating systems.
What should I do if the Key Content field is empty?
If the field is empty or says "The key content is not present," it means one of two things: either you don't have administrator rights, or the profile was imported without a security key (settings only), or this is a corporate network with a certificate where the password is not explicitly used.