It's common to need to connect a new device to a wireless network but have long forgotten the password. Fortunately, the operating system Windows 10 Stores access keys to previously connected networks in its database. This makes it easy to retrieve forgotten password combinations if you have access to at least one computer that has already successfully logged into the network. You won't have to reset your router or search for your ISP contract.
There are several methods for accomplishing this task, from simple graphical interfaces to more advanced console commands. Each method has its own characteristics and is suitable for different use cases. For example, if you need to quickly view the code for the currently active network, the standard settings menu will do the trick. However, if you need to access the history of all networks ever connected, you'll need to use the command line.
In this guide, we'll detail all the available options so you can choose the one that's most convenient for you. We'll cover working with the graphical interface and using the utility. netsh We'll even touch on data security issues. It's important to understand that you may need administrator rights to perform some actions.
Using the settings graphical interface
The easiest and most straightforward way to find your WiFi password on Windows 10 is to use the standard network properties window. This method is ideal if you're in range of the network or connected to it. The system allows you to view the security key without entering complex commands, making the process accessible even for inexperienced users.
First, you need to open your network settings. Right-click the WiFi icon in the system tray (lower-right corner of the screen) and select "Open Network and Internet Settings." In the window that opens, find the "Network and Sharing Center" link, or simply click "Properties" under the name of your active network. Then, select "Wireless Network Properties."
In the dialog box that opens, go to the "Security" tab. This is where the information you're looking for is stored. You'll see the "Network Security Key" field, where the characters are hidden by dots. To make them visible, check the "Show entered characters" box. The system may ask you to confirm your administrator rights.
- 🔍 Right-click on the WiFi icon in the tray.
- 🔍 Select "Properties" of the active network.
- 🔍 Go to the "Security" tab.
- 🔍 Check the box "Show entered characters".
⚠️ Important: If the "Security" tab is missing or the options are grayed out, make sure you are using an account with administrator privileges. Without the appropriate privileges, the system will not allow you to view saved keys.
It's worth noting that this method only works for the network your computer is currently connected to. If you want to find the password for a network you've previously connected to but are currently out of range, this method won't work. In this case, you'll need to access deeper system settings.
Viewing a password via the command line
The Windows command line provides more flexible tools for managing network connections. Using the built-in utility netsh You can not only see the password for the current network, but also extract access keys from the connection history. This method is often faster and more reliable, especially if the graphical interface is unstable.
First, you need to launch the command prompt as administrator. Press the key combination Win + X and select "Windows PowerShell (Admin)" or "Command Prompt (Admin)". In the window that opens, enter the following command to display all saved WiFi profiles:
netsh wlan show profiles
The system will display a list of all networks this computer has ever connected to. Find the desired name (SSID) in the list. Next, use the command to display detailed information about a specific profile, adding the key parameter:
netsh wlan show profile name="Network_Name" key=clear
In the command output, find the line "Key Content." This is where your password will be displayed in cleartext. This method is universal and works on all versions of Windows 10 and 11, regardless of interface updates.
- 🛠️ Run Command Prompt as administrator.
- 🛠️ Enter the command
netsh wlan show profilesfor the list of networks. - 🛠️ Use the command
netsh wlan show profile name="Name" key=clear. - 🛠️ Find the "Key Content" line in the results.
What to do if the command doesn't work?
If the system displays "Access Denied" or "Not Found," check the spelling of the network name. It must be an exact match, including case and spaces. Also, make sure you launched the console as an administrator, otherwise access to security keys will be blocked by Windows security policy.
Using the console is especially useful in corporate environments or for remote administration, where the graphical interface may be unavailable. Furthermore, this method allows you to quickly copy a password by highlighting it with the mouse, eliminating errors when entering it manually.
Analysis of saved profiles and connection history
Windows 10 automatically saves profiles of all networks you've ever connected to using the auto-connect option. This is convenient, but it also poses certain security risks. If an attacker gains access to your computer, they can easily extract passwords for all your home and work networks.
You can use the same command line to manage these profiles. You can not only view but also delete old, unnecessary profiles to clean up the database and reduce risks. The command to delete a profile is as follows:
netsh wlan delete profile name="Network_Name"
Regularly clearing the network list also helps resolve connection issues if the system is attempting to connect to an invalid or weak signal from the past. This is especially true for laptops that move between different locations.
| Parameter | Description | Example of meaning |
|---|---|---|
| Profile name | The network SSID as it appears in the list | Home_WiFi_5G |
| Security type | Data encryption protocol | WPA2-Personal |
| Key content | The network password itself (visible only with the clear key) | SuperSecret123 |
| Connection type | Automatic or manual | Automatically |
⚠️ Warning: Deleting a network profile will cause your computer to forget the password. You'll need to re-enter the passkey to reconnect. Be careful when clearing history if you don't remember your password.
Understanding how Windows manages profiles gives you complete control over your network connections. You can easily switch between configurations or transfer settings to another computer by exporting XML profile files (although this requires more advanced knowledge).
Using PowerShell for Advanced Users
For those who prefer more modern tools, PowerShell offers an alternative to the classic command line. Although the basic commands netsh PowerShell works here too; you can create scripts to automate processes. For example, you can write a script that lists all networks and their passwords in a single text file.
To get a list of profiles in PowerShell, you can use the following construct, which integrates the output of netsh into a variable:
$profiles = netsh wlan show profiles
Next, using loops and string processing, you can extract the names of all networks and sequentially request a security key for each. This can be useful for system administrators setting up multiple workstations. However, for a one-time action, it's easier to use the standard command with a parameter. key=clear, described in the previous section.
- 💻 PowerShell provides more options for scripting.
- 💻 You can automate the export of passwords to a file.
- 💻 Supports all netsh commands via shell.
- 💻 Requires more careful syntax when writing scripts.
You may need to change the script execution policy, which also requires administrator privileges. For the average user, the difference between CMD and PowerShell for viewing WiFi passwords is minimal.
Restoring access via a router
If none of your computers remember the password, or you want to know the access key for a device that has never connected to your PC, you still have the option of accessing the router itself. The password is stored in the router's configuration and can be viewed through the device's web interface.
To do this, connect to the router via cable or WiFi (if another device is already connected). In the browser's address bar, enter the router's IP address, usually 192.168.0.1 or 192.168.1.1After entering the administrator login and password (often found on a sticker on the bottom of the device), go to the wireless network section (Wireless or WiFi Settings).
The current password will be displayed in the wireless network security settings. You can also change it here if you suspect the key has been compromised. After changing the password, all devices will need to be reconnected.
⚠️ Note: Router interfaces from different manufacturers (TP-Link, ASUS, D-Link, Keenetic) may vary. Look for sections labeled "Wireless Security," "WLAN," "Security," or "Wi-Fi Settings." The exact paths may vary depending on the firmware version.
This method is the most versatile, as it doesn't depend on the operating system of the computer you're logging in from. You can use a phone, tablet, or any other device to access your router settings.
Security measures for storing passwords
Knowing how to easily extract a Windows 10 password should make you think about the security of physical access to your computer. If someone gains access to your unlocked system with administrator rights, they will be able to obtain passwords for all your networks. Therefore, it is important to use a strong login password.
Additionally, don't store passwords in plain text files on your desktop or in unencrypted documents. Use specialized password managers that protect your data with a master password and database encryption. This is significantly more secure than relying on memory or simple notes.
Change your WiFi passwords regularly, especially if you frequently grant access to guests or use complex passwords that are difficult to remember. Modern routers allow you to create guest networks with limited access and a separate password, which is an excellent security practice.
- 🔒 Use complex passwords to log in to Windows.
- 🔒 Do not leave your computer unattended when unlocked.
- 🔒 Restrict the rights of non-administrator users.
- 🔒 Consider using a guest network for visitors.
WiFi network security isn't just about protecting against external hackers; it also involves controlling internal access. Consciously managing saved profiles and passwords helps maintain digital security hygiene.
Frequently Asked Questions (FAQ)
Is it possible to find out the WiFi password if the computer is not currently connected to this network?
Yes, this is possible. Windows 10 saves profiles for all networks you've previously connected to with the automatic connection option. Using the command prompt and the command netsh wlan show profile name="Name" key=clear, you can see the password even if the network is currently unavailable or disconnected.
What should I do if the command line says "Access denied"?
This error means you don't have sufficient privileges to execute the command. You need to run the Command Prompt (CMD) or PowerShell as an administrator. To do this, right-click the Start menu icon and select the appropriate option, or search for "cmd" in the search bar, right-click, and select "Run as administrator."
Where are WiFi passwords stored in the Windows registry?
Passwords are stored in a protected section of the registry and configuration files in the system folder, but they are encrypted. Directly reading the registry without special decryption keys or utilities will not yield a readable password. It's easier and safer to use built-in netsh commands, which decrypt automatically if you have administrator privileges.
Is it possible to find out someone else's WiFi network password using Windows 10?
No, Windows can only reveal the password for a network your computer has previously connected to and has a saved profile on. Hacking someone else's network or finding the password for a network you've never connected to is impossible using standard operating system tools. This requires specialized tools and knowledge of vulnerabilities, which is illegal without the owner's permission.
Will resetting the network reset WiFi passwords?
Yes, the "Network Reset" feature in Windows 10 Settings removes all installed network adapters and resets all network settings, including saved WiFi profiles and their passwords. After the reset, you'll have to reconnect to networks and enter passwords.