It's quite common to need to connect a new device to the network but have forgotten the access key. Fortunately, the operating system Windows 11 Stores passwords for all networks you've ever connected to in a dedicated, secure vault. This makes it easy to restore access if you've previously used the same computer to access the internet.
There are several methods for extracting this information, from simply viewing the active connection properties to using the command line to retrieve data about any saved networks. We'll cover each method in detail so you can choose the most convenient option for your situation.
Before you begin, make sure you have administrator rights on the device, as system security settings may require confirmation. It's also important to understand that you can only find the password for a network the computer has previously connected to.
Using the Windows 11 GUI
The easiest and most secure way to view your saved password is to use the new settings interface in Windows 11Microsoft has significantly simplified access to this data in recent updates, eliminating the need to delve into the depths of the Control Panel. Now, the required option is located directly in the Wi-Fi properties menu.
To begin, open the system settings by pressing the key combination Win + I or by selecting the appropriate item in the Start menu. Go to the section Network and Internet, and then select Wi-FiIf you need to find the password for the currently active network, simply click "Properties" next to the connection name.
In the window that opens, scroll down to the "Wi-Fi Settings" section. There you'll see the "Password" field, which is hidden by asterisks by default. Click the "Copy" button or the eye icon to reveal the characters. The system may request confirmation via a PIN or biometrics for your security.
⚠️ Attention: The Copy Password button may be disabled if you're using a Microsoft account without local administrator rights, or if your organization's security policy prevents keys from being displayed.
If you need to find the password for the network you're currently connected to, but the interface won't let you access it, you can use the classic control panel as an alternative. Click Win + R, enter ncpa.cpl and press Enter. Find your wireless network adapter, right-click it, and select "Status."
In the window that appears, click the button Wireless network properties. Go to the tab Security and check the box next to "Show entered characters." The key you're looking for will appear in text format. This method works reliably across all OS builds.
Viewing passwords via Command Prompt (CMD)
For users who prefer console utilities, or in cases where the graphical interface isn't working correctly, the command line is the ideal solution. This method not only allows you to view the password for the current network but also displays a list of all previously saved profiles.
Run the command prompt as administrator. To do this, enter cmd In the search box, right-click on the result and select the appropriate option. First, find out the exact network profile name if it differs from the SSID. Enter the command:
netsh wlan show profiles
The system will display a list of all saved profiles. Find the desired network name in the list. Next, to get information about a specific profile, including the security key, use the command with the key parameter. The syntax is as follows:
netsh wlan show profile name="NETWORK_NAME" key=clear
Instead of NETWORK_NAME Substitute the actual name of your network. Note that if the name contains spaces, quotation marks are required. After running the command, scroll to the "Security settings" section. The "Key Content" line will contain your password in cleartext.
- 🔍 Search all networks: Team
show profileswithout parameters displays a complete list of all access points known to the computer. - 🔑 Cleaning the key: Parameter
key=clearis critically important, otherwise the system will hide the password with asterisks. - 📝 Encoding: If the output contains "krakozyabry" instead of Russian letters, enter the command
chcp 65001before starting netsh.
This method is especially useful for IT professionals who need to quickly access configuration settings without unnecessary clicks. It even works in Safe Boot Mode, making it a versatile diagnostic tool.
Using PowerShell for Advanced Users
Power PowerShell This allows you to not only display the password but also automatically format it or save it to a file. This method is suitable for those already familiar with the basics of scripting or who want a more structured output.
Launch PowerShell as administrator. Unlike CMD, you can use an object-oriented approach here. To list your profiles, enter the command:
(netsh wlan show profiles) -match":\s"
However, to immediately obtain the password of a specific network in a readable form, you can use the same utility netsh, but inside the PowerShell shell, which sometimes produces cleaner output. Enter:
netsh wlan show profile name="NAME" key=clear
PowerShell's main advantage is its scripting capabilities. You can create a script that automatically finds all networks with blank passwords or, conversely, exports all keys to a text file for backing up router settings.
⚠️ Attention: When working in PowerShell, pay attention to the case of letters in command and variable names. A syntax error can result in unintended actions, although viewing Wi-Fi profiles is safe.
You can also use PowerShell to manage the adapter: enable and disable it, and reset the TCP/IP stack. This is a handy tool if the network doesn't connect automatically after changing the password. Resetting network settings often resolves authorization issues.
How to create a script to save all passwords?
You can create a .ps1 file with a loop that will loop through all profiles from the show profiles command and run show profile key=clear for each one, redirecting the output to a .txt file. This is useful for backing up settings before reinstalling Windows.
Comparison of access recovery methods
Each of the methods described above has its advantages and disadvantages depending on your specific situation. The graphical interface is ideal for one-time actions by regular users, while console commands are indispensable for remote administration or when desktop access is unavailable.
The table below compares the main characteristics of the methods so you can choose the best one:
| Method | Complexity | Requires admin rights | Access to network history |
|---|---|---|---|
| Windows 11 Settings | Low | No (for the current network) | Active only |
| Control Panel | Average | No (for the current network) | Active only |
| Command line | High | Yes | All saved |
| PowerShell | High | Yes | All saved |
Choose a method based on your skills. If you're worried about typing errors, it's best to use the standard network properties window. If you need to retrieve the password for a network you're not currently connected to (but have connected to in the past), the console is the only built-in option.
Possible errors and solutions
When recovering a password, users often encounter various system error messages. Understanding their causes will help quickly resolve the issue. For example, the "Network not found" error usually means the profile has been deleted or the name was entered incorrectly.
If the team netsh If the console returns an access denied error, check if you're running the console as an administrator. Without elevated privileges, the system blocks access to security keys. Issues can also be caused by antivirus software blocking access to system password storage.
- ❌ Error 5: Means "Access Denied." Run Terminal as administrator.
- ❌ Group Policy: In corporate networks, administrators can prohibit the display of passwords. This cannot be circumvented using standard tools.
- ❌ WLAN Service: Make sure the WLAN AutoConfig service is running. Without it, profile management is impossible.
Sometimes a simple restart of the Wi-Fi service helps. Enter services.msc, find "WLAN AutoConfig Service," right-click it, and select "Restart." Then try running the command again.
Security issues and data protection
While viewing passwords is convenient, it also poses a risk if your computer is used by unauthorized persons. Anyone with physical access to your PC and administrator rights can obtain the keys to all networks. Therefore, it's important to practice basic digital hygiene.
Don't store passwords in text files on your desktop or send them in plain text via instant messaging. If you used the console to display your password, your command history may be preserved. You can clear it with the command cls or by closing the terminal window.
⚠️ Attention: Interfaces and commands may change slightly with Windows updates. If the paths described don't match, check the "Network and Internet" section in your current OS version or consult Microsoft Help.
For maximum security, we recommend using complex passwords on your router and avoiding connecting to open public networks unless necessary. Regularly changing your access keys minimizes the risk of unauthorized access to your local network.
☑️ Wi-Fi Security Check
Is it possible to find out the Wi-Fi password if the computer is not connected to it?
No, Windows' built-in tools can only retrieve passwords for networks whose profiles are saved in the system. If the computer has never connected to this network or the profile has been deleted ("Forget Network"), the password is not stored anywhere.
Why is there an empty line instead of a password in the command line?
This happens if you forgot to add the parameter key=clear to the end of the command. Without this flag, the system displays only the network name and security type, hiding the key itself.
Is it safe to use third-party password recovery programs?
Using third-party software (such as WirelessKeyView) carries risks. Such programs are often flagged by antivirus software as potentially unwanted programs, as they perform the same functions as hacking tools. It's better to use built-in Windows tools.
What should I do if I forgot my administrator password and can't launch CMD?
Without administrator rights, you won't be able to view saved passwords using standard methods. You'll need to reset the account password or use another user account with administrator rights.