How to view your Wi-Fi password on a computer connected via a wire: a step-by-step guide

Are you connected to the internet via an Ethernet cable, but urgently need to find out the Wi-Fi password to connect your phone, tablet, or another computer? This situation is familiar to many: the router was set up a long time ago, the password sticker has worn off, and access to the router's web interface is blocked or requires a login/password you don't remember. Fortunately, You can extract your Wi-Fi password directly from your computer., even if it's connected to the network via a wire - provided you've connected to that network wirelessly at least once.

In this article we will look at three proven methodsHow to view saved Wi-Fi password on PC Windows 10 or Windows 11, without resetting the router. The methods work regardless of the router model (TP-Link, ASUS, Keenetic etc.) and do not require special programs. You will also learn what to do if your computer I've never connected to this Wi-Fi over the air. - in this case, an alternative approach will be required.

A word of warning: If you're renting a place or using a corporate network, extracting a password without the owner's permission may be a security breach. Use these methods. for personal networks only, to which you have legal access.

📊 How often do you forget your Wi-Fi password?
Once a month
A couple of times a year
I never forget
I have it written down in my notebook

Why does a computer "know" the Wi-Fi password even when connected via cable?

When you first connect to a wireless network, Windows saves its settings - including the password - in a special storage WLAN-profilesThis data remains in the system. even after disconnecting from Wi-Fi and reboots. Therefore, if you've ever logged into this network over the air, the password can be retrieved at any time.

Key points:

  • 🔹 Connecting via cable does not erase saved Wi-Fi profilesThey are stored separately from the current network connection.
  • 🔹 Passwords are encrypted, but Windows allows you to view them through a graphical interface or command line.
  • 🔹 If the computer never connected To connect to this Wi-Fi, the methods below will not work - you will need access to the router.

Exception: If the network was configured via WPS (button on the router) or Wi-Fi Direct, the password may not have been saved in the default profile. In such cases, you will have to use alternative methods (see the section on resetting the router).

Method 1: View your password through Windows Settings (the easiest way)

This method works in Windows 10/11 and doesn't require administrator rights if your account has access to network settings. Instructions:

  1. Open Parameters (keys Win + I).
  2. Go to the section Network and Internet → Wi-Fi.
  3. Click Managing known networks.
  4. Find the name of the desired network in the list (SSID) and click on it.
  5. Select Properties.
  6. Scroll down to field Network password and press Show.

If the button Show inactive or the field is empty, then:

  • 🔴 You never connected to this network via Wi-Fi from this computer.
  • 🔴 Network profile is corrupted (try method 2 or 3).
  • 🔴 Your account does not have sufficient rights (administrator rights are required).
What to do if the list of known networks is empty?

This means there are no Wi-Fi profiles saved on this PC. Possible causes:

- The computer is new or after reinstalling Windows.

- All profiles were deleted manually through netsh wlan delete profile name=*.

- You use a corporate network with certificates (for example, in an office or university) where passwords are not stored locally.

Method 2: Extracting the password via the command line (universal)

If the GUI does not show the password, try to get it through CMDThis method works even in older versions. Windows 7/8 and does not depend on user rights (provided that the network profile exists).

Open Command Prompt as Administrator:

  1. Click Win + X and select Terminal (Administrator) or Command Prompt (Administrator).
  2. Enter the command to view all saved Wi-Fi networks:
    netsh wlan show profiles

    Remember the exact name (SSID) the required network.

  3. Display network information by replacing NETWORK_NAME to its real name:
    netsh wlan show profile name="NETWORK_NAME" key=clear
  4. Find the line Key content - this is the password.

Example of command output:

Security parameters

Authentication type: WPA2-Personal

Encryption type: CCMP

Key contents: 12345678

Make sure the network name is entered correctly (case sensitive)|

Command prompt run as administrator|

The command output contains a section called "Security Settings" (if not, the profile is corrupted) -->

Method 3: Export all Wi-Fi passwords to a file (for backup)

If you need to save passwords for all networks (for example, before reinstalling Windows), use this method. It creates a text file with all SSID and passwords.

Instructions:

  1. Open Notebook and paste the following script:
    @echo off
    

    for /f "tokens=2 delims=:" %%a in ('netsh wlan show profiles ^| find "All users"') do (

    netsh wlan show profile name="%%a" key=clear | findstr "SSID Key Contents" >> WiFi-passwords.txt

    )

    pause

  2. Save the file with the extension .bat (For example, wifi_passwords.bat).
  3. Run the file as administrator. Once executed, the file will open. WiFi-passwords.txt with a list of networks and passwords.

⚠️ Attention: Keep this file in a safe place! It contains cleartext passwords and can be used for unauthorized access to networks.

Method Admin rights required Works on Windows 7 Saves passwords to a file
Via "Options" No (if you have access to settings) No No
Command line Yes Yes No
Export to file Yes Yes Yes

What to do if your computer has never connected to this Wi-Fi network

If you are trying to retrieve the password from a network to which this PC is connected never connected over the air, the previous methods won't work. In this case, there are two options:

  1. Access to the router:
    • 🔌 Connect to the router via cable.
    • 🌐 Open the web interface at 192.168.0.1 or 192.168.1.1 (check the router sticker).
    • 🔑 Enter your login/password (usually admin/admin or see sticker).
    • 📡 Go to the section Wireless or Wi-Fi and look at the password.
  • Resetting the router (extreme case):

    If you don't know the login details for your router, press and hold the button Reset (10-15 seconds) to reset the settings to factory defaults. After that:

    • 🔄 Connect to the router via cable.
    • 🖥️ Log in to the web interface (see the sticker for the address and login/password).
    • ⚙️ Reset your Wi-Fi (set a new password).
    ⚠️ Attention: Resetting the router will remove all settings, including passwords, ISP binding (if using PPPoE), and firewall rules. After resetting, you may need to reconfigure your internet (check with your ISP for connection details).

    Common mistakes and how to avoid them

    When attempting to extract a password, users often encounter typical problems. Let's look at the most common ones:

    • 🚫 Error: "There are no profiles for this interface"

      Cause: The computer didn't save Wi-Fi profiles (e.g., cable-only connection). Solution: Access the router or reset it.

    • 🚫 The "Show" button is inactive

      Cause: The account doesn't have administrator rights or the profile is corrupted. Solution: Run the command prompt as an administrator and use method 2.

    • 🚫 The password is displayed as dots or asterisks.

      Reason: In some versions Windows The password field may be masked. Solution: Copy it (click Ctrl + C after clicking in the field) and paste into notepad.

    • 🚫 Team netsh doesn't work

      Reason: Service is missing WLAN AutoConfigSolution: Check its status in services.msc and start it if it is stopped.

    If none of the methods worked, check:

    • 🔍 The presence of an antivirus that blocks access to network settings (temporarily disable protection).
    • 🔍 Integrity of system files (run sfc /scannow in the command line as admin).
    • 🔍 Version Windows - in rare assemblies (for example, Windows LTSC) standard utilities may be missing.

    Security: How to Protect Your Wi-Fi from Hacking

    Once you know your network password, don't forget to check its security. Here 5 Key RecommendationsTo prevent unauthorized access:

    • 🔒 Use WPA3 or WPA2-AES (avoid outdated WEP And WPA-TKIP).
    • 🔒 Set a complex password (minimum 12 characters with letters, numbers, and special characters). Example: k7#pL9!vR2$q.
    • 🔒 Turn it off WPS - This function is vulnerable to brute force attacks.
    • 🔒 Change the default login/password of the router (for example, with admin/admin on unique data).
    • 🔒 Enable MAC address filtering (manually add devices that are allowed access).

    To check who is connected to your network:

    1. Go to the router's web interface (see the section above).
    2. Find the tab DHCP Clients, Connected Devices or Client list.
    3. Compare the MAC addresses with your devices. Unknown addresses indicate network leakage.
    ⚠️ Attention: If you detect unknown devices on your network, immediately change your Wi-Fi password and reboot your router. This will disconnect all active connections.

    FAQ: Frequently asked questions about viewing Wi-Fi passwords

    Is it possible to find out the Wi-Fi password if the computer is only connected via cable and has never been connected to this network over the air?

    No, if it's a computer never connected If you're connecting to this Wi-Fi network, the password isn't saved in its profiles. In this case, you'll need to:

    1. Access to the router's web interface (login/password are usually indicated on the sticker).
    2. Or reset the router to factory settings (and then set up the network again).

    Exception: if specialized programs for hacking Wi-Fi are installed on the computer (for example, Aircrack-ng), but their use without the permission of the network owner is illegal.

    Why is there in the command output netsh there is no "Key Content" line?

    This means that:

    • The network profile is corrupted or incomplete.
    • The network uses enterprise authentication (for example, in offices or universities), where passwords are not stored locally.
    • You entered the network name incorrectly (check your capitalization!).

    Solution: Try other methods or check the list of networks with the command netsh wlan show profiles.

    How do I view my Wi-Fi password on a Mac if I'm connected via cable?

    On macOS the algorithm is similar:

    1. Open Terminal.
    2. Enter the command:
      security find-generic-password -wa "NETWORK_NAME"

      (replace NETWORK_NAME on SSID).

    3. Enter your account password Mac, if necessary.

    The password will be displayed in the line password:.

    Is it possible to extract Wi-Fi password from an Android phone if it is connected via USB to a PC?

    No, connecting your phone via USB does not give you access to its Wi-Fi profiles. However, you can:

    • 📱 View your password directly on your phone (required) root or special applications like WiFi Password Viewer).
    • 🔗 Connect to your phone via ADB and extract profiles manually (for advanced users).

    Without root-rights by standard means Android passwords are not shown.

    I reset my router, but the internet isn't working. What should I do?

    After resetting your router, you'll need to reconfigure your connection to your ISP. You'll need:

    • 📄 Connection details (usually PPPoE-login/password or MAC address), which are provided by the provider.
    • 🔧 Access to the router's web interface (see the sticker for the address and login/password).

    If you don't know your connection parameters, please contact your ISP's technical support. Let them know. MAC address of the router (indicated on the sticker) - they will help you set up the connection.