How to find your Wi-Fi password on Windows 10 when connected via cable

The situation when a computer with an operating system Windows 10 The situation of connecting a new gadget and forgetting the wireless network password is common. If your desktop PC is connected to the router via an Ethernet cable, the standard method of viewing saved passwords in the wireless adapter settings becomes unavailable. The system simply doesn't display the security tab, since the active connection is wired, not via Wi-Fi.

However, the absence of an active wireless connection on this device does not mean data loss. The operating system stores profiles of all networks the computer has ever connected to, even if they are currently inactive. Key task The idea is to extract this information from the system registry or configuration files using built-in administration tools.

In this guide, we'll explore the most effective and secure ways to retrieve forgotten login credentials. We'll cover using the command line, PowerShell, and the router's web interface, which is often overlooked by users. Even without an active Wi-Fi connection on the PC, the network profile is saved in the system until a complete reset of the network settings.

Using the CMD command line to retrieve data

The fastest and most reliable way to find out a forgotten key is to use the built-in utility netshThis tool allows you to manage network configurations directly from the console. You don't need to install third-party software, minimizing security risks.

First, you need to launch the command prompt with administrator rights. Press the key combination Win + X and select "Windows PowerShell (Admin)" or "Command Prompt (Admin)". In the window that opens, enter the command netsh wlan show profilesIt will display a list of all saved Wi-Fi network profiles that have ever been used on this computer.

⚠️ Note: If the profile list is empty, your computer hasn't connected to a wireless network before, and you won't be able to find the password using this method. In this case, you'll need to search for the password on another device or on the router itself.

Once you have seen the name of the network you want (SSID), enter the following command, replacing “Network_Name” with the exact name of your Wi-Fi: netsh wlan show profile name="Network_Name" key=clearPay attention to the quotation marks—if the network name contains spaces, they are required. In the report that opens, find the "Key Content" line, which will contain the password you're looking for.

📊 Which method of access recovery do you find more difficult?
Command line
PowerShell
Router web interface
Third-party programs

Alternative method via PowerShell

For users who prefer more modern management tools, PowerShell Provides advanced scripting capabilities. This method is especially useful if you need to not only view the password but also save it to a text file for later use.

Launch PowerShell as administrator. Unlike CMD, you can use more flexible filters here. Enter the following command to display profile information: netsh wlan show profile name="Your_SSID" key=clearThe operating principle is identical to the command line, but PowerShell's interface makes it easier to copy large amounts of text.

If you need to export all passwords at once, you can use a script. Create a text file, paste the profile export code into it, and run it. This will give you a complete list of all saved networks and their security keys in a single document.

Example command to export all profiles to XML

netsh wlan export profile folder="C:\\" key=clear

Gaining access via the router's web interface

If your computer is connected via cable, you have a unique advantage: direct access to the router's administrative panel. This is the "gold standard" of network management, allowing you not only to find out the password but also to change any security settings.

Open any browser and enter the IP address of the default gateway in the address bar. Most often, this is 192.168.0.1 or 192.168.1.1The exact address can be found by running the command ipconfig in the command line and find the line “Default Gateway”.

After entering the address, the system will ask for your login and password. If you haven't changed them, they are often listed on a sticker on the bottom of the router (standard admin/admin). Once you've logged in, go to the "Wireless" or "Wi-Fi" section. The current password will be displayed in the "Password" or "Pre-Shared Key" field. You can also set a new, more complex password here.

Router manufacturer Standard IP Default login Default password
TP-Link 192.168.0.1 admin admin
ASUS 192.168.1.1 admin admin
D-Link 192.168.0.1 admin (empty)
Keenetic 192.168.1.1 admin 1234
Tenda 192.168.0.1 admin admin

⚠️ Note: Router interfaces are constantly being updated. Menu locations may vary depending on the firmware version. Look for sections labeled "Wireless," "WLAN," "Security," or "Wireless Mode."

Analyzing saved profiles in the Windows registry

Advanced users who want to understand where information is stored should look into the system registry. However, be careful: directly editing the registry requires caution. Passwords are stored in encrypted form, but the network profiles themselves are accessible for viewing.

Click Win + R, enter regedit and press Enter. Navigate to the following path: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\ProfilesHere you'll see a list of all networks your PC has connected to. Although the password isn't explicitly listed here, you can verify that the system "remembers" this network.

A more in-depth analysis requires specialized decoding utilities, but using standard Windows tools, it's safer to use the command line, as described above. The registry is best used for diagnosing connection issues rather than extracting security keys.

Using third-party recovery utilities

There are a number of programs such as WirelessKeyView from NirSoft or WiFi Password Revealer, which automate the key extraction process. They scan the WLAN database and display passwords in a convenient table format.

The main advantage of such programs is speed and clarity. You don't need to remember commands. However, using third-party software always carries risks. Antivirus programs may classify such utilities as potentially unwanted programs (PUA) because they access sensitive data.

  • 🔍 WirelessKeyView — free, no installation required, shows all saved keys.
  • 🛡️ WiFi Password Revealer - simple interface, but may require administrator rights to run.
  • 📊 Magical Jelly Bean WiFi Password Revealer — allows you to export passwords to a text file or HTML.

⚠️ Warning: Download utilities only from the developers' official websites. Versions from third-party portals may contain stealer viruses that will steal your passwords immediately upon launch.

Common errors and how to fix them

When recovering a password, users often encounter technical obstacles. The most common error is "Access Denied" when attempting to run a command in CMD. This occurs if the console is not running as an administrator.

Another common problem is an incorrect network name. In the command netsh The name must match character for character, including case and spaces. If even one character is incorrect, the system will report that the profile was not found.

It's also worth considering that some corporate networks use complex encryption protocols (such as WPA2-Enterprise), where the password isn't stored in plaintext but rather uses a certificate. In home networks (WPA2-Personal), such issues are rare.

☑️ Access problem diagnostics

Completed: 0 / 4

Security measures after access restoration

Once you've found your Wi-Fi password, it's highly recommended that you consider the security of your network. If you've forgotten the password, it may be too complex or too simple. Using default passwords provided by your ISP makes your network vulnerable.

The best practice is to change the password to a unique one consisting of a combination of letters, numbers, and special characters. Change the password through the router's web interface, after which you will need to reconnect all devices using the new key.

Don't forget to update your router firmware regularly. Manufacturers release updates that patch security vulnerabilities. An outdated firmware version can be an open door for hackers, even if you have a strong password.

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

No, if the computer has never been connected to the network and has no profile record, it's impossible to find the password through the OS. The only option is to look at the sticker on the router (if the password hasn't been changed) or access the router settings via cable if you know the admin password.

What should I do if the netsh command says "Network out of range"?

This error occurs if you are trying to access the properties of a network you are not currently connected to and it is not saved in your profiles. Make sure you are using the command show profiles to view the list, and then exactly copy the name from the list for the team show profile name=....

Is it safe to save passwords in Windows?

Windows stores passwords in encrypted form, linked to the user account. As long as your account is password-protected and the attacker doesn't have physical access to your PC, the storage is considered relatively secure. However, having administrator privileges makes it easy to decrypt this data.

How to reset all network settings in Windows 10?

Go to Settings → Network & Internet → Status → Network Reset. This will delete all saved Wi-Fi profiles and passwords, resetting your network adapters to factory settings. After a reboot, you'll need to re-enter your passwords.