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

It's quite common to find yourself connected to a desktop computer via a cable and needing to connect a new smartphone or tablet to a wireless network. Many users mistakenly believe that it's impossible to recover a forgotten security key without access to the router's web interface or without a wireless device already connected. However, the Windows operating system has built-in mechanisms that allow you to retrieve saved credentials from a network profile, even if the PC itself isn't using a Wi-Fi adapter for the current connection.

In this article, we'll cover several proven methods that will help you solve this problem without using third-party software. We'll cover working with the command line, the system's graphical interface, and the router's administrative panel. Restoring access It will only take a few minutes if you follow the algorithm of actions sequentially and carefully.

Using the Windows Command Prompt to Extract the KeyThe most reliable and fastest way to obtain information about saved networks is to use the built-in command line utility. This method is universal for all modern versions of Windows, from Windows 7 to the latest Windows 11. You don't need administrator rights to view a saved profile, but running the console on some corporate networks may require elevated privileges.

First, you need to launch the command line. Press the key combination Win + R, enter cmd and press Enter. In the window that opens, enter the command to display all saved Wi-Fi profiles: netsh wlan show profilesThe system will display a list of all networks that this computer has ever connected to or that have been imported into the system.

Find the name of your wireless network in the list. Note that the network name must match exactly, including case and special characters. Then enter the command netsh wlan show profile name="Network_Name" key=clearReplace "Network_Name" with your actual Wi-Fi name. In the "Security settings" section, find the "Key Content" line.

⚠️ Note: If you see an error message instead of a password or the field is empty, make sure you enter the network name in quotation marks if it contains spaces. Also, this command only works if the network profile is actually saved in Windows.

The value specified in the key content field is the password you're looking for. You can copy it by right-clicking the text (this works automatically in modern console versions) or by taking a screenshot. This method is particularly convenient because it doesn't require a graphical interface and works even in safe boot mode.

📊 Which password recovery method do you find most convenient?
Via the command line
Through Windows settings
Via the router's web interface
Using third-party programs

Viewing network properties through the Windows GUIIf using the command line seems too complicated or you prefer visual controls, the operating system provides the ability to view the password through standard settings. This method requires the computer to be connected to the same local network as the Wi-Fi router, even if the connection is via an Ethernet cable.

Open the Start menu and go to "Settings" (the gear icon). Select "Network & Internet." The interface may differ depending on your version of Windows, but the logic remains the same. You'll need to find the "Status" or "Advanced network settings" section. In Windows 10 and 11, you'll often need to click "Network and Sharing Center" or "Change adapter settings."

In the window that opens, find the active "Ethernet" connection (since you're connected via a wired connection). Left-click it, then select "Properties." In the new window, find the "Wireless Network" or "Wireless Network Properties" button—this is only possible if the system associates the current wired connection with a Wi-Fi profile of the same network. However, a more direct route in newer versions of Windows is to go to "Settings" → "Network & Internet" → "Wi-Fi" → "Manage known networks."

Select the desired network from the list and click "Properties." Scroll down until you see the "Show characters" or "Network security key" field. Once you toggle the switch, the system will display the password in plain text. This method is convenient because it doesn't require you to remember commands, but it does require more menu clicks.

Password recovery via the router's web interfaceThe most universal method, regardless of your computer's operating system (it works on Windows, Linux, and macOS), is to access the router's settings. Since your computer is connected to the router via a wire, it's on the same local network, giving you full access to the device's administrative panel.

First, you need to find out the IP address of the default gateway. Open the command prompt (cmd) and enter the command ipconfigFind the line "Default Gateway". This is usually an address of the form 192.168.0.1, 192.168.1.1 or 10.0.0.1Enter this address into the address bar of any browser.

Once the login page loads, you will be asked to enter your administrator username and password. Important: This information is different from the Wi-Fi password. If you haven't changed it, it's often listed on a sticker on the bottom of the router (the default is admin/admin). If the password has been changed and forgotten, you'll have to reset the router using the Reset button.

After successful authorization, locate the section related to wireless networking. It may be labeled "Wireless," "Wi-Fi," "Wireless Mode," or "WLAN." Within this section, look for the "Security" or "Wireless Network Settings" subsection. The current access key is displayed in the "Password" (Pre-Shared Key, WPA Key) field. You can copy it or change it to a new one.

☑️ Checking access to the router

Completed: 0 / 5

Table of standard router addresses and credentialsTo simplify logging into your router's settings, below is a table of the most common factory addresses and login credentials. Please note that manufacturers may change this information in new firmware updates, so the information on the device's label should always be used (and always be prioritized).

Manufacturer Default IP address Login Password
TP-Link 192.168.0.1 / 192.168.1.1 admin admin
ASUS 192.168.1.1 admin admin
D-Link 192.168.0.1 admin (empty)
Keenetic 192.168.1.1 / my.keenetic.net admin 1234
Tenda 192.168.0.1 admin admin

Using this table allows you to quickly find your way around if the sticker on your device is worn off or hard to read. However, if security settings were previously configured, the data in the table may not be valid. In this case, you'll need to recall the changed data or perform a reset.

After logging in, menu navigation may vary. Modern routers often use a quick setup wizard, which hides advanced settings. Look for the "Advanced" button or the interface mode switch.

Third-party programs and utilitiesThere are many programs that automate the password recovery process. However, you should understand the risks when using them. Most of these utilities require administrator privileges and deep access to the Windows system files where your credentials are stored.

One of the popular utilities is WirelessKeyView from NirSoft. It doesn't require installation and immediately displays all saved keys. The program scans the registry and system files, displaying the results in a table. Another option is WiFi Password Decoder, which works on a similar principle.

⚠️ Warning: Antivirus programs may detect password recovery tools (like HackTool or RiskTool) as potentially unwanted software. This is because they use methods similar to those used by cybercriminals. Use such programs only on your own computer and download them from the developers' official websites.

The advantage of third-party software is the ability to export all passwords to a text file or HTML report with a single click. This is convenient for system administrators managing multiple access points. However, for a one-time home task, the built-in Windows tools described above are quite sufficient.

Why does my antivirus complain about password viewers?

Antivirus programs use heuristic analysis. Programs that can extract saved passwords from the system are technically data theft tools. Therefore, the signatures of such programs are often marked as risky, even if you are using them legally on your device.

What to do if none of the methods helpedSometimes, a computer is connected via cable, but the Wi-Fi profile is missing (for example, Windows was reinstalled or the profile was deleted), and access to the router's web interface is blocked by a forgotten administrator password. In this case, the only remaining option is a radical, yet effective, solution.

We're talking about resetting the router to factory settings. There's a small hole on the device's body with the inscription Reset or DefaultTurn on the router, find this hole, and press the button inside (with a paperclip or toothpick) for 10-15 seconds until the indicators blink simultaneously. After rebooting, the router will return to its "out of the box" state.

After the reset, your Wi-Fi network will work with the factory password (indicated on the sticker) or without a password. You can connect to it from any device, access the settings using the default credentials (admin/admin), and configure new security settings. Don't forget to reconfigure your connection to your ISP (PPPoE, L2TP, or dynamic IP) if it wasn't configured automatically.

Frequently Asked Questions (FAQ)

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

Yes, you can. Methods via the router's web interface and the command line (if the network profile was previously saved in the system) don't require the Wi-Fi module to be active. You only need access to the local network, which is provided by a cable.

Where is the reset button physically located on the router?

It's usually located on the back of the device, near the LAN ports or power jack. It's often recessed to prevent accidental activation. Access requires a thin object, such as a straightened paperclip.

Is it safe to store a password in a text file on your desktop?

This is strongly discouraged. Any ransomware or attacker who gains access to your account will be able to read this file. It's best to use a password manager or memorize the combination.

Why does the netsh wlan show profile command return the error "Group Policy does not allow..."?

This restriction may be imposed by the system administrator or corporate security policies. In Home versions of Windows, this is rare and usually indicates access rights issues or corrupted system files.

Is it possible to recover a password if the computer is running Linux instead of Windows?

Yes, but you can't do this via the Windows command line. In Linux, passwords are stored in configuration files (usually /etc/NetworkManager/system-connections/), which require root access. You can also use the router's web interface, which works independently of the operating system.