It's quite common to need to connect a new device to a wireless network, but the password has long been lost or forgotten. Fortunately, the operating system Windows 10 Stores access keys to previously connected networks in its security profile, allowing you to easily restore this information without resetting the router. This built-in password storage (Credential Manager) securely encrypts data but provides a legal way for users to view it with administrator rights.
In this article, we will look at several proven methods that will help you extract the saved key from the system. You can use either a graphical interface, which is easy to understand for beginners, or more advanced tools like the command line to get a complete list of all networks ever saved. It's important to understand that to perform these actions, you must be physically connected to the network or have a saved connection profile on your computer.
Before we get into the technical details, it's worth noting that the security of your local network is directly related to its complexity. WPA2/WPA3 keysIf you discover that your password is too simple or has been compromised, now is the perfect time to change it in your router settings. However, if your goal is simply to connect a friend's phone or tablet, follow the instructions below.
Using the Windows GUI to view the key
The easiest and safest way find out the WiFi password — Use the standard network properties windows. This method doesn't require any special commands and is available to anyone with desktop access. Simply navigate through the menu chain, where the system will automatically reveal hidden symbols.
To get started, open the Start menu and select the gear icon to enter ParametersNext, go to the "Network and Internet" section and select "Status," or directly click "Network and Sharing Center," which is often located on the right side of the window or in the Control Panel. In the window that opens, find the active connection. Wireless network and click on the blue link with the name of your network.
⚠️ Note: If you're not currently connected to a network but want to view its password, this method may not work directly. In this case, connect first, or use the command line method described below, which allows you to work with profiles even without an active connection.
In the status window, click the button Wireless network propertiesA new dialog box will open, where you need to switch to the "Security" tab. This is where the "Network Security Key" field is located, hidden by asterisks by default. Check the "Show entered characters" box, and you'll see your password.
Once the symbols become visible, you can rewrite them manually or, more conveniently, copy them. To copy, select the text in the key field, press Ctrl+C, and then paste it into the desired location through Ctrl+VThis will eliminate errors associated with typos when manually entering complex characters.
Password recovery via command line (CMD)
For more experienced users or in cases where the graphical interface does not work correctly, it is ideal to use command lineThis tool provides direct access to the network configuration and allows you to not only view the password for the current network but also display a list of all saved profiles with their access keys.
Launch the Command Prompt as administrator. To do this, right-click the Start button and select "Windows PowerShell (Administrator)" or search for "cmd," right-click, and select "Run as administrator." Enter the following command to see a list of all saved WiFi profiles:
netsh wlan show profiles
Find the exact name of your network (SSID) in the list. If the name contains spaces, it must be enclosed in quotation marks. To display full profile information, including the cleartext password, use the command with the parameter key=clearThis is a critical parameter that removes character masking.
netsh wlan show profile name="Your_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. This method is especially useful if you need to quickly copy a key without navigating through multiple windows.
☑️ Check before entering a command
View all saved WiFi passwords at once
Sometimes you need to export or simply view passwords for all networks a computer has ever connected to. The standard Windows interface doesn't allow you to do this with a single click, but the command line netsh copes with this task superbly.
You can create a command that will list all profiles with keys. However, be careful: the output can be very long. For easier reading, you can redirect the output to a text file. This will create a report on your desktop or in the root directory, easily opened in Notepad.
netsh wlan export profile key=clear folder=c:\wifi_passwords
After executing this command in the specified folder (in this example c:\wifi_passwords) XML files will appear for each network. Inside each file, in the tag keyMaterial The password will be stored in cleartext. This is a convenient way to back up your settings before reinstalling the system.
| Command parameter | Description of action | Result |
|---|---|---|
| show profiles | Displays a list of all profiles | List of network names (SSID) |
| key=clear | Removes encryption of the key in the output | The password is visible in the text |
| export profile | Saves the profile to a file | Creating an XML file |
| folder=path | Specifies the save directory | Files in the selected folder |
⚠️ Warning: The XML files created by the export command contain cleartext passwords. Anyone who gains access to these files will be able to connect to your network. Be sure to delete the folder containing the exported profiles immediately after use or move them to a secure location.
Using PowerShell for Network Administration
An alternative to the classic CMD is PowerShell — a more powerful automation tool. While it may seem overkill for simple password viewing tasks, its syntax allows for creating more complex scripts for managing network connections.
You can also use netsh commands in PowerShell, as they are part of the Windows networking subsystem. Open PowerShell and enter the command to retrieve the profile. The syntax remains the same, making the transition between shells seamless for the user.
However, PowerShell allows you to filter the output. For example, you can write a script that finds a profile by part of its name. This is useful if you don't remember the exact network name, but know that it begins with, say, "Home."
(netsh wlan show profiles) | Select-String "\:(.+)$" | % { $name=$_.Matches.Groups[1].Value.Trim(); $_ } | %{ (netsh wlan show profile name="$_" key=clear) } | Select-String "Key Content\W+\:(.+)$" | % { $pass=$_.Matches.Groups[1].Value.Trim(); $_ } | %{ [PSCustomObject]@{ PROFILE_NAME=$name;PASSWORD=$pass } } | Format-Table -AutoSize
This long command will automatically output a table with all profiles and passwords. Using PowerShell is only advisable if you plan to regularly manage network profiles or automate this process across multiple computers. For a one-time task, it is easier to use the standard CMD.
Why might PowerShell be more convenient than CMD?
PowerShell works with objects, not just text. This makes it easier to filter, sort, and export data to CSV or JSON formats, which is impossible to do with standard CMD tools without complex manipulation.
Third-party password recovery programs
If you don't want to mess around with the command line, there are specialized utilities, such as WirelessKeyView from NirSoft or WiFi Password RevealerThese programs scan the system registry and configuration files, displaying all saved passwords in a user-friendly interface.
The main advantage of such programs is speed and clarity. You don't need to enter commands; simply run the executable file. However, using third-party software always carries risks. Antivirus programs can react to such snails as if they were HackTool or Potentially Unwanted Program, as their functionality is used by hackers to steal data.
Download such programs only from the developers' official websites. Using cracked versions or downloading from dubious portals can infect your computer with real stealer viruses that can steal not only WiFi passwords but also access to bank accounts.
- ✅ WirelessKeyView is a lightweight utility that doesn't require installation and displays all keys.
- ✅ WiFi Password Revealer - simple interface, supports different Windows versions.
- ✅ Bulk WiFi Password Recovery — allows you to save passwords to a file or send them by email.
What to do if the password is not displayed or access is denied
Sometimes the system may block access to security keys. This often happens on corporate networks or if the user account has limited privileges. In such cases, even an administrator may encounter an error message when attempting to run a command. netsh.
Check Windows services. Make sure the WLAN AutoConfig service is started and running correctly. If this service is stopped, you won't be able to manage wireless networks and won't be able to view saved profiles.
⚠️ Note: Operating system interfaces and driver versions are constantly updated. Menu locations or exact command syntax may vary slightly across different Windows 10 builds (Home, Pro, Enterprise) or after major updates. If a command doesn't work, check the official Microsoft documentation for your OS version.
If all else fails, the last option is physical access to the router. If you have access to the device, connect to it via a LAN cable. In the router's web interface (usually at 192.168.0.1 or 192.168.1.1), in the wireless network section, you can not only view the current password but also set a new one that will be easier to remember.
Security details and profile management
Once you've learned your password, it's recommended to conduct a security audit. Delete old network profiles you no longer use (such as cafe or hotel networks) to prevent your computer from attempting to automatically connect to them in the future, which could be unsafe.
To delete a profile, use the command: netsh wlan delete profile name="Network_Name"This will clear the list of known networks and improve your privacy. Regularly cleaning this list is a good habit for keeping your Windows network settings organized.
Remember that knowing that, How to view a WiFi password, gives you control over your digital environment. Use this knowledge responsibly, avoiding attempts to gain unauthorized access to other people's networks, as this violates laws and ethical standards.
Is it possible to view a WiFi password if the computer is not connected to the network?
Yes, you can. The Windows operating system stores profiles of all the networks you've ever connected to and saves the password. Even if Wi-Fi is currently turned off or you're out of range of the router, the profile remains in the system, and its key can be retrieved via the command line.
Why does the netsh command say "Access Denied"?
You most likely ran the command prompt without administrator privileges. Running commands to view and export profiles requires running the console as an administrator. Your antivirus software may also be blocking access to system password storage.
Where are WiFi passwords physically stored in Windows 10?
Passwords are stored in a protected section of the Windows registry and in system configuration files, accessible only by the OS kernel and processes with SYSTEM or administrator privileges. They are encrypted using keys tied to a specific user and machine.
Are password recovery programs safe to use?
Using trusted utilities from reputable developers (such as NirSoft) is safe if downloaded from the official website. However, antivirus programs may flag them as dangerous due to their functionality (False Positive). Third-party programs from unknown developers carry a high risk of malware infection.