A situation where you need to know WiFi password, to which your computer is already connected, occurs quite often. Perhaps you bought a new smartphone or tablet and want to connect a guest to your home network, but forgot the access key or lost the note containing it. You don't want to reset your router to factory settings, as this will disrupt all other devices configured to connect automatically.
Fortunately, the operating system Windows Stores data on all successful connections in its database. This means that if your laptop or PC has ever successfully connected to the desired access point, the password is saved in the network profile. This information can be accessed using the system's built-in tools, without resorting to third-party software, which may be unsafe.
The most reliable and fastest way is to use command lineThis method is universal and works on most versions of the operating system, starting from Windows 7 and ending with the current ones Windows 10 And Windows 11In this article, we'll detail the process of extracting a saved security key using system utilities.
Preparing the command line for administrative tasks
Before entering commands to obtain network data, you must launch the system management interface with administrator rights. Without elevated privileges, the operating system will not allow you to view sensitive WiFi profile data. This is a standard precaution. security, which protects the user from unauthorized access to network settings by malware.
There are several ways to open the tool you need. The fastest is to use the search in the Start menu. Enter the phrase in the search box cmd or Command lineThe corresponding application will appear in the search results. Right-click the icon and select "Run as administrator." If you prefer to use hotkeys, press the combination Win + X and select "Windows PowerShell (Administrator)" or "Windows Terminal (Administrator)" from the menu that appears.
After launching a window with a black or blue background, the system may prompt you to confirm your actions via a User Account Control pop-up. Click "Yes" to allow changes. Make sure the word "Administrator" appears in the window title to confirm you have the necessary permissions to perform further operations with network profiles.
⚠️ Attention: Be careful when entering commands into the console. Incorrect syntax can lead to execution errors, although standard profile viewing commands are safe and pose no risk of system damage.
Getting a list of saved WiFi networks
The first step in data recovery is identifying the exact network profile name. The operating system may store dozens of profiles if you frequently move your laptop between home, office, and cafes. We need to know how the system identifies the desired network in order to request data specifically for it.
To display a list of all wireless networks known to the computer, use the command netsh wlan show profiles. Enter this line into the command prompt window and press the key EnterThe system will immediately process the request and display a table listing all profiles ever used on this device. The list will include both home networks and public access points.
Pay attention to the "User Profile Names" column. These are the names the system uses to store settings internally. If you see the desired network in the list, the password for it is stored in the computer's memory and can be retrieved. If the desired name isn't listed, this computer has never connected to this network automatically, and you won't be able to retrieve the password using this method.
In some cases, especially on older versions of Windows or in corporate environments, profile names may differ from the actual network name (SSID). Therefore, it's important to verify the exact spelling, including case sensitivity and special characters, if present.
☑️ Check before entering a command
Command to display the password of a specific network
Once you've copied or memorized the exact name of the desired profile from the list, you can proceed to extracting the security key. This requires a more advanced version of the command, which requires the profile name and a special key for revealing hidden data.
The command syntax is as follows: netsh wlan show profile name="NETWORK_NAME" key=clear. Please note that part name="NETWORK_NAME" Requires substituting your network's actual name for the text in quotation marks. Quotation marks are required if the network name contains spaces, but it's recommended to always include them to avoid syntax errors.
Parameter key=clear is critical. Without it, the system will only show the general technical characteristics of the profile, such as the encryption type and SSID name, but will hide the password itself, replacing it with asterisks or dots. It's the flag clear allows the system to output the key in clear text.
Enter the command, replace NETWORK_NAME to your value and click EnterIf everything is done correctly, a detailed report about the selected profile will appear on the screen. You don't need to search through all the text; it's located in a dedicated security settings block.
What to do if the command doesn't work?
If the system returns the error "The command syntax is incorrect," check the quotation marks around the network name. Also, make sure you're not using Cyrillic quotation marks ("") instead of the standard ones. Sometimes, copying the network name directly from the profile list helps to eliminate typos.
Analyze the results and find the security key
After running the command, you'll see a large amount of technical information. Don't be intimidated by the amount of text; we're only interested in one specific line. All the information is structured into sections, and we're looking for the section called "Security Settings."
Scroll up or down the command output until you find the line labeled "Key Content." The value to the right of this parameter is the value you're looking for. WiFi passwordIt will be displayed in clear text, allowing you to easily rewrite or copy it.
In this section you can also see other useful information. For example, the encryption type (usually WPA2-Personal or WPA3), security type, and authentication mode. This information can be useful when setting up new equipment that requires manual selection of a security protocol.
If the "Key Contents" line displays a blank value or a message stating that the key is not saved, this means the network profile exists, but the password has not been saved in the system. This can happen if the "Connect automatically" option was checked during the initial connection without saving the password for other users, although Windows saves keys by default on home networks.
| Output parameter | Description of the meaning | Where to look |
|---|---|---|
| Profile name | The name of the network to which the settings apply | The top of the report |
| Security type | Encryption protocol (WPA2, WPA3, WEP) | Security Settings section |
| Key content | The WiFi network password itself | Security Settings section |
| Authentication mode | Access rights verification method | Security Settings section |
Alternative method via graphical interface
If using the command line seems too complicated or inconvenient, there's an alternative way to find the password through the standard Windows settings windows. This method is more visual, but requires more clicks and menu navigation, which can be more time-consuming.
To get started, open the Control Panel and go to Network and Internet, then select Network and Sharing Center. On the left side of the window, click Change adapter settings. Find your wireless connection, right-click it, and select Status.
In the window that opens, click "Wireless Network Properties." Go to the "Connection" tab (or "Security" in some versions). Check the "Show characters" box. The system will display the password in the "Network security key" field. This method only works for the network to which the computer is currently connected.
The advantage of the console method described above is that it allows you to see passwords for any networks your computer has previously connected to, even if you're currently out of range. The graphical interface typically only displays the password for the active network.
⚠️ Attention: The Control Panel interface may vary depending on your Windows version and theme. In Windows 10 and 11, some options may be hidden in the Settings app, so the console remains the most stable tool.
Deleting profiles and managing networks
Knowing the command line gives you not only the ability to create passwords but also to manage them. Over time, your system accumulates a ton of old profiles from networks you no longer visit. This not only clutters your list but also potentially reduces security, as your computer may automatically attempt to connect to open or insecure networks.
To delete a specific network profile, use the command: netsh wlan delete profile name="NETWORK_NAME"After running this command, the profile will be completely deleted from the system, including the saved password. If you want to connect to this network again, you will need to re-enter the access key.
If you want to clear the entire list of saved networks at once (for example, before selling the computer or giving it to another user), you can use the command with an asterisk: netsh wlan delete profile name=*This action will irreversibly delete all saved WiFi profiles from this device.
Regularly cleaning your profiles is a good digital hygiene practice. It prevents automatic connections to known but potentially unsafe networks in public areas that may use the same names (SSIDs) as your trusted networks.
Frequently Asked Questions (FAQ)
Is it possible to find out a WiFi password if the computer is not connected to it right now?
Yes, it is possible. Teams netsh They work with a database of saved profiles. If the computer has ever successfully connected to this network and saved a profile, you can find the password even from hundreds of kilometers away from the router.
What should I do if the command output says "Key not saved" instead of the password?
This means that when initially connecting to this network, the profile was created without saving the security key. This often happens in corporate networks with certificates or if special security policies have been applied. In this case, recovering the password through the console is impossible; you will need access to the router itself or the device where the password is entered and visible.
Does this method work on Windows 7, 8, 10 and 11?
Yes, it is a utility. netsh has been a standard component of Windows since very early versions. The command syntax for viewing WiFi profiles remains virtually identical in all modern versions of Microsoft's operating system.
Do you need internet to run these commands?
No, an internet connection is not required. All commands are executed locally on your computer, accessing internal system configuration files. You can be in airplane mode, and the command will still work as long as the profile is saved.