How to view your WiFi password on a Windows 10 computer via cable

It's quite common to connect a new device or gadget to your computer that requires you to enter a wireless network security key, but you've forgotten the password. Fortunately, the operating system Windows 10 Stores data about previously used connections, so even if you're currently connected via cable, finding a forgotten connection won't be difficult. This is possible because the network profile is already saved in the system.

There are several proven ways to retrieve this information: through the network connections graphical interface, using the built-in command line, or directly through the router's web interface. The method you choose depends on how your local network is configured and whether you have physical access to the router's administrative panel. In this article, we'll cover all the options in detail so you can restore network access in any situation.

Don't worry if you don't remember where you saved the data when you first set up your device. The operating system securely stores this information in encrypted form, and viewing it doesn't require installing third-party software. All you need is administrator rights and the steps described below.

Using the Network Connections GUI

The easiest alternative way to find your security key is to use the standard Windows settings. This method is ideal for those who prefer using a mouse rather than entering commands manually. Even if your computer is currently connected to the internet via an Ethernet cable, the wireless network profile remains active in the system memory.

First, you need to open the Network Connections control panel. This can be done by pressing the following key combination: Win + R and entering the command ncpa.cplIn the window that opens, you'll see a list of all network adapters. Find your wireless adapter (usually labeled "Wireless Network" or "Wi-Fi"), even if it shows as disabled. This is because we're interested in the saved profile, not the current connection status.

Right-click the Wi-Fi adapter icon and select "Status." In the window that appears, click "Wireless Network Properties." Go to the "Connection" tab (or "Security," depending on your driver and interface version). This is where you'll find your network's key security settings.

⚠️ Important: If the "Security" tab is missing or the fields are locked, make sure you are logged in with administrator privileges. For security reasons, the system will not allow you to view saved passwords without elevated privileges.

On the Security tab, you'll see the "Network Security Key" field. By default, the characters are hidden behind asterisks. To see the actual password, check the "Show characters as you type" box. This will make the hidden text visible, allowing you to copy or rewrite it.

📊 How do you usually connect your PC to the Internet?
Via Wi-Fi
Via LAN cable
Via USB modem
Via smartphone

Finding a password using the Windows command line

For more advanced users or in cases where the graphical interface isn't working correctly, using the command line is a great solution. This method provides direct access to the wireless network management service. WLAN and allows you to display information in text form.

To launch the utility, right-click the "Start" button and select "Windows PowerShell (Administrator)" or "Command Prompt (Administrator)." It's important to launch the terminal as an administrator, otherwise the command will be executed with an access denied error. In the window that opens, enter the following command to view all saved profiles:

netsh wlan show profiles

The system will display a list of all networks this computer has ever connected to. Find your network name (SSID) in the list. If the network name contains spaces, you must enclose it in quotation marks in the next request. Now let's request detailed data for a specific profile by adding the key key=clear, which shows the key in clear text:

netsh wlan show profile name="Your_Network_Name" key=clear

In the command output, find the "Security settings" section. The "Key Content" line will display the password you're looking for. This method is especially useful if you need to quickly copy data or if the Windows interface freezes.

What to do if the command is not found?

The netsh command has been built into Windows since XP. If the system reports that the command is not found, verify the integrity of your system files or try running the terminal as a different user with administrator privileges. In rare cases, an antivirus program may block access to network settings through the console.

Viewing the security key through the router's web interface

If your computer is connected to the router via cable, you have full access to its administrative panel. This is the most reliable method, as it displays the current hardware settings, not just the data stored on your PC. To log in, you'll need the IP address of the default gateway.

You can find out the gateway address through the command line by entering ipconfig, or by checking the connection status in the network settings. These are usually addresses of the form 192.168.0.1 or 192.168.1.1Enter this address into the address bar of any browser. The system will ask for your login and password to access the router settings.

If you've never changed the default login information for your router, it's located on a sticker on the bottom of the device. This is often a combination admin/adminOnce in the menu, look for the section related to wireless mode. It may be called "Wireless," "Wi-Fi," "Wireless Network," or "WLAN."

Router brand Typical entry address Wi-Fi settings section Password field name
TP-Link 192.168.0.1 Wireless -> Wireless Security Wireless Password
ASUS 192.168.1.1 Wireless Network -> General WPA-PSK key
D-Link 192.168.0.1 Wi-Fi -> Security Settings PSK encryption key
Keenetic my.keenetic.net My Networks and Wi-Fi -> Home Network Network password

Within the corresponding section, find the field containing the password. Modern router models often have a "Show" button (an eye) that makes the characters visible. If there's no such button, you can simply replace the old password with a new one and save the settings. You'll have to reconnect all your devices, but at least you'll know the new key.

Working with a network profile in the registry and PowerShell

For specialists in IT security System administrators may be interested in obtaining passwords through deep system settings or PowerShell scripts. While the standard command line is effective, PowerShell allows you to automate the process or extract the data in XML format for further analysis.

Using PowerShell, you can export the network profile to a file where the password will be stored in encrypted form, or use special modules for decoding. However, for a one-time password view on Windows 10, this is overkill. A simpler option in PowerShell is to use cmdlets, if they are installed, but the standard netsh works faster and does not require additional libraries.

It is worth mentioning that network data is stored in the Windows registry at the path HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\ProfilesHowever, passwords are not stored there in cleartext; they are protected by system DPAPI encryption mechanisms. Attempts to extract them directly from the registry without specialized software or decryptor scripts will be unsuccessful.

⚠️ Warning: Manually editing the registry without a precise understanding of its structure may lead to operating system instability. It is recommended to use read-only registry keys or verified scripts.

If you do decide to use PowerShell for automation, make sure the script execution policy allows running local scripts. For one-time use, it's best to limit yourself to the commands we discussed in the previous sections, as they are native and secure.

Recovering access if you forgot your router administrator password

It often happens that you can connect to your router via cable but can't access its settings because you've forgotten the administrator password (not to be confused with the Wi-Fi password). In this case, you won't be able to view the Wi-Fi password through the web interface without resetting the settings.

The only solution is a hardware reset. There's a small hole on the router's body with the inscription Reset or RestorePress it with a paperclip and hold it for about 10-15 seconds until the lights flash. The router will reboot to factory settings.

After the reset, the Wi-Fi password will be the one on the sticker on the bottom of the device. The web interface password will also be reset to the factory default (often admin/admin). You'll need to reconfigure your connection to your ISP if it wasn't automatically saved in the router profile (which is rare).

☑️ What to do after resetting your router

Completed: 0 / 5

Common problems and their solutions

When searching for a password, users may encounter various errors. For example, the "Network Security Key" field may be inactive (grayed out). This often happens if "Connect automatically" is checked in the properties, but the profile is corrupted. In this case, deleting the network profile via netsh wlan delete profile name="Name" and reconnect by entering the password (if you remember it or find it on another device).

Another common issue is an IP address or driver conflict, where the computer sees the network but cannot obtain information about it. Updating network adapter drivers via device Manager often solves the problem of incorrect display of connection statuses.

It is also worth considering that in corporate networks using servers Radius For domain authentication, the password may not be explicitly stored in the local profile but instead be requested upon each connection. In such cases, password recovery using the methods described is impossible; you will need to contact your system administrator.

Is it possible to find out a Wi-Fi password if the computer has never connected to this network?

No, it's impossible to use standard Windows tools to find the password for a network the device has never connected to and whose data hasn't been imported. The password must be stored somewhere (in a Windows profile, on the router, or on another connected device).

Is it safe to use password cracking or viewing programs?

Most programs that promise to "hack" Wi-Fi are malicious. Programs for viewing saved passwords (such as WirelessKeyView) are safe if downloaded from the developer's official website, but antivirus software may detect them as hacking tools (HackTools).

What should I do if the command line says "Element not found"?

A "Element not found" error when running the netsh command usually means the profile name is incorrect. The name must match exactly, including case and spaces. Use the show profiles command to copy the exact name.