How to find out your Wi-Fi password if your computer is connected via cable

It's quite common to need to connect a new device to a wireless network but have lost or forgotten the password. Fortunately, if your desktop computer or laptop already has an active connection to the router via LAN cableRestoring access to network data is easy. The Windows operating system stores access keys for previously used networks or allows you to retrieve the current key directly from the adapter settings.

Unlike a wireless connection, where the computer receives data "over the air," a wired connection provides a stable and secure communication channel. This means you can safely retrieve information about WPA2/WPA3 security keys without risking connection interruptions during setup. We'll cover several proven methods, from simple graphical interfaces to command-line options for advanced users.

It's important to understand that you'll need administrator rights to perform these actions. Without the appropriate privileges, the system won't allow you to view saved passwords for security reasons. It's also worth noting that the methods may vary slightly depending on the version. Windows 10 or Windows 11, but the general principle remains the same over the years.

Using the Windows graphical interface

The easiest and safest way for most users is to use the operating system's standard tools. You don't need to install third-party software or risk the integrity of system files. Simply navigate through the network settings menu to access the data you need.

First, open the Network and Sharing Control Panel. You can do this by right-clicking the monitor icon in the system tray (near the clock) and selecting "Network and Internet settings." In the window that opens, look for the link "Network and Sharing Center" or "Advanced network settings." In newer versions Windows 11 the path may look like this Settings → Network & Internet → Advanced network settings.

In the network status window, you'll see an active connection labeled "Local Area Connection" or "Ethernet." Click this link to open the connection status. Next, select "Wireless Properties." This is where the key settings for your Wi-Fi network are hidden, even if your PC is connected via cable.

In the window that opens, go to the "Security" tab. You'll see the "Network Security Key" field, where the characters are hidden behind asterisks. To see the password, check the "Show entered characters" box. Then password will become visible in text form.

⚠️ Note: If the "Security" tab is missing or the "Wireless Network Properties" button is grayed out, this may mean the network card driver is running in compatibility mode or you don't have administrator rights. In this case, try running the command prompt as an administrator.

This method is ideal for those who are afraid of making command errors. It's visual and easy to understand. However, if you have multiple network profiles installed and the one you need isn't currently active, this method will only show data for the current or most recently used network.

📊 Which password recovery method do you prefer?
Windows graphical interface
Command Prompt (CMD)
Third-party programs
Resetting the router

Getting the password via the command line (CMD)

For more experienced users or when the graphical interface isn't working correctly, the command line is ideal. This method allows you to access a list of all saved Wi-Fi profiles the computer has ever connected to, even if you're currently connected via a cable.

Launch the command prompt. Click Win + R, enter cmd and press Enter, or search for "Command Prompt" in the Start menu. To run the commands successfully, be sure to run the console as an administrator. First, let's list all saved profiles.

netsh wlan show profiles

Find your network name (SSID) in the list. If the name contains spaces, it must be enclosed in quotation marks. Now use the command to display detailed profile information, including the security key. Replace Network_Name to the real name of your Wi-Fi.

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

In the command output, find the "Security settings" section. The "Key Content" line will contain your password in cleartext. This method works on all modern versions of Windows, starting with Vista.

Usage netsh This gives you more control. You can copy the command to the clipboard to avoid misspellings of the network name. This method is also often used by system administrators to quickly diagnose and restore access to corporate networks.

☑️ Check before entering commands

Completed: 0 / 5

Viewing the password through the router's web interface

Since your computer is connected to the router via cable, you have direct access to its administrative panel. This is the "brain center" of your network, where all settings are stored, including the current Wi-Fi password, encryption type, and the list of connected devices.

Open any browser and enter the router's IP address in the address bar. Most often, this is 192.168.0.1 or 192.168.1.1The exact address is usually indicated on a sticker on the bottom of the device. You will need to enter the administrator login and password. By default, this is often admin/admin, but if you have changed them before, use your data.

Interfaces of routers from different manufacturers (TP-Link, ASUS, D-Link, Keenetic) are different, but the logic is the same. Look for the "Wireless" and "Wi-Fi" sections. Inside, there will be a "Security" or "Security Settings" subsection. This is where the "Password" field is located.

The advantage of this method is that you can not only find out the password but also immediately change it to a more complex one if you suspect your neighbors are "stealing" your traffic. You can also set up a guest network here so you don't have to share the master key with visitors.

⚠️ Note: Router firmware interfaces may be updated by the manufacturer. Menu locations may change. If you can't find the item you need, check the official documentation for your model on the manufacturer's website.

Logging in via the web interface also allows you to check which encryption standard is being used. It is recommended to use WPA2-PSK or WPA3Older standards like WEP are easily cracked and do not provide adequate data protection.

What should I do if I forgot my router admin password?

If you changed your router settings password and forgot it, you can't recover it using software. The only solution is to reset the device to factory settings using the Reset button on the device. After this, the router will have the default login and password (indicated on the sticker), but you'll have to reconfigure all your internet and Wi-Fi settings.

Comparison of access recovery methods

Each of the methods discussed has its advantages and disadvantages depending on your situation. The Windows graphical interface is the most user-friendly, but is limited to the current profile. The command line is versatile, but requires precision. The web interface provides full control, but requires an administrator password.

Below is a comparison table to help you choose the best method for your situation. Please pay attention to access rights requirements and the level of technical complexity.

Method Necessary rights Complexity Shows old networks
Network Properties (GUI) User Low No (active only)
Command Prompt (CMD) Administrator Average Yes (all saved)
Router web interface Router admin Average Yes (current config)
Third-party software Administrator Low Yes

When choosing a method, consider your current access level. If you're using a PC that's already connected to the network, the CMD or GUI method will be the fastest. However, if you're setting up a network from scratch or changing the password for all devices, it's best to access the router.

Using third-party software and PowerShell

There are many programs that automate the process of viewing saved networks. Popular utilities like WirelessKeyView NirSoft's tools allow you to export all keys in one click. However, using third-party software always carries security risks.

A safer alternative to "heavy" programs is PowerShellThis is a powerful administration tool built into Windows. It allows you to perform the same actions as CMD, but with more convenient data output and scripting capabilities.

Run PowerShell as administrator. To get a list of profiles and passwords, you can use the following command, which will output the network name and key:

(netsh wlan show profiles) | Select-String "\:(.+)$" | %{$name=$_.Matches.Groups[1].Value.Trim(); $_} | %{(netsh wlan show profile name="$name" key=clear)} | Select-String "Key Content" | %{$pass=$_.Matches.Groups[1].Value.Trim(); $_} | %{[PSCustomObject]@{ PROFILE_NAME=$name;PASSWORD=$pass}} | Format-Table -AutoSize

This command may seem complicated, but it simply chains several actions together. It automatically runs through all profiles and produces a table of passwords. Be careful when copying long commands to avoid syntax errors.

⚠️ Warning: Downloading password recovery programs from untrusted sources can infect your computer with viruses. Official Microsoft repositories or websites of reputable developers (like NirSoft) are safer, but even their antivirus programs are sometimes flagged as "HackTool."

Using built-in Windows tools (CMD, PowerShell, GUI) is always preferable, as they do not require the installation of additional software and do not leave traces in the system after completion.

Problems and their solutions

Even following the instructions, you may encounter difficulties. Users often receive an "Access Denied" error when attempting to run a command. netshThis almost always means that the console is running as a standard user, not an administrator.

Another common issue is encoding. If your network name or password contains Russian letters, they may appear as gibberish in the command line. In this case, before running the commands, enter chcp 65001to switch encoding to UTF-8, or use the graphical interface.

It's also worth mentioning resetting network settings. If the system is unstable and doesn't see saved profiles, try resetting network settings. In Windows 10/11, this can be done via Settings → Network & Internet → Network resetAfter rebooting, the computer will be as good as new in terms of network connections.

If all else fails, the only option left is to physically reset the router. There's a small hole on the back panel. ResetPress it with a paperclip for 10-15 seconds. The router will reset to factory settings, and the password will be the one on the sticker.

Why doesn't the password work after recovery?

You may have recovered the password for the guest network, not the main one. Or your router may have MAC address filtering enabled, and your device is blocked even if you entered the password correctly. Check the list of blocked devices in the router's web interface.

Frequently Asked Questions (FAQ)

Is it possible to find out the Wi-Fi password if the computer is connected via cable, but the network card drivers are not installed?

No, without the drivers installed, the operating system won't see the network adapter and can't communicate with it. You'll first need to install the drivers for the Ethernet controller to establish a network connection.

Will the password be visible if the network is hidden (Hidden SSID)?

Yes, if your computer has ever connected to this hidden network and saved a profile, the password will be stored on the system. It will appear in the command prompt just like for a regular network, provided you know the exact profile name.

Is viewing passwords via the command line dangerous?

The viewing process itself is safe. However, copying the password to the clipboard or saving a screenshot of the password to a public location can pose a threat. Delete your command history and clipboard after use.

Is it possible to find out my neighbor's Wi-Fi password if I'm connected to it via cable?

Technically, if you have physical access to the cable and administrator rights on your PC, you can attempt to log in to the router. However, if the router admin password has been changed and is unknown, restoring the Wi-Fi key using standard Windows tools will not work, as the PC doesn't store keys for networks it hasn't previously connected to using a profile.

Where are Wi-Fi passwords stored in the Windows file system?

Profiles and keys are stored in the system folder C:\ProgramData\Microsoft\Wlansvc\Profiles\Interfaces in the form of XML files. However, the keys there are encrypted with system keys and cannot be read in cleartext without special utilities or SYSTEM privileges.