How to find out the Wi-Fi password on a Windows 10 computer: all the methods

Forgot your home Wi-Fi password and the sticker on your router has worn off? Or do you need to connect a new device but haven't saved the password on your phone? On a computer with Windows 10 You can easily retrieve your saved network security key—even if you don't remember it. The system stores all connected networks in encrypted form, but provides legal tools for viewing.

In this article - 5 proven methodsHow to find out the Wi-Fi password on a PC without third-party programs: via the graphical interface, command line, PowerShell and even using a configuration file. We'll cover the nuances for different versions. Windows 10 (including 22H2), we'll explain why some methods may not work and provide security tips. If you're a network administrator or simply want to restore access, read on.

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

This is a basic method that works on all versions. Windows 10 and doesn't require administrator rights (if you're already connected to the network). Suitable for most users.

Instructions:

  • 🖱️ Open the menu Start → select Parameters (gear icon) → go to the section Network and Internet.
  • 📶 In the left menu, click Wi-Fi → in the right part of the window, click Managing known networks.
  • 🔍 Find the desired network in the list and click on it → select Properties.
  • 🔑 Scroll down to the field Network security key → check the box Show entered characters.

If the button Properties is inactive or the password field is empty, then:

  • ❌ You are not connected to this network currently (you need to connect again).
  • ❌ Your account does not have administrator rights.
  • ❌ The network is saved, but the password was not entered (for example, connecting via WPS).
⚠️ Note: This method reveals the password only for the current active networkIf you want to see the keys for all saved networks, use the methods below.

2. Using the command line (CMD) for all saved networks

Command line allows you to extract passwords all Wi-Fi networks, to which the computer has ever connected. This method requires administrator rights, but works even if the network is currently unavailable.

Step-by-step instructions:

  1. Open Command line as administrator:
    • 🔍 Enter in search cmd → right-click on the result → Run as administrator.
  • Enter the command to view all saved networks:
    netsh wlan show profiles

    Remember the name of the network you want (for example, TP-Link_1234).

  • Extract the password for a specific network:
    netsh wlan show profile name="NETWORK_NAME" key=clear

    Replace NETWORK_NAME to the real name (for example, netsh wlan show profile name="TP-Link_1234" key=clear).

  • Find the line Key content (Key Content) - this is the password.
  • Example of command output:

    
    

    Profile name: TP-Link_1234

    ...

    Security parameters

    Authentication type: WPA2-Personal

    Encryption type: AES

    Key contents: 12345678

    Make sure you ran CMD as administrator|Make sure you entered the network name correctly|Try the alternative method with PowerShell (section 3)|If the network was connected via WPS, the password may not be on the system-->

    ⚠️ Attention: In some corporate networks (with authentication 802.1X) the password may not be displayed due to security policy. Also, this method does not work for networks connected via Windows Domain.

    3. CMD Alternative: Extract Password via PowerShell

    PowerShell — a more powerful tool than CMD, and also allows you to retrieve Wi-Fi passwords. This method is useful if the standard command line doesn't work.

    Instructions:

    1. Launch PowerShell as administrator:
      • 🔍 Enter in search PowerShell → right click → Run as administrator.
  • Enter the command to display all profiles:
    (netsh wlan show profiles) | Select-String "\:(.+)$" | %{$name=$_.Matches.Groups[1].Value.Trim(); $_} | %{(netsh wlan show profile name="$name" key=clear)} | Select-String "Key contents\W+\:(.+)$" | %{$pass=$_.Matches.Groups[1].Value.Trim(); [PSCustomObject]@{PROFILE_NAME=$name;PASSWORD=$pass}} | Format-Table -AutoSize
  • This command will automatically extract names of all networks and their passwords in table form:

    Network name (PROFILE_NAME) Password
    TP-Link_1234 12345678
    KEENETIC-5G qwerty123
    DIRECT-xx-HP_Printer (empty)

    If in the column PASSWORD empty, then:

    • 🔄 The network was connected without a password (for example, through WPS or open access point).
    • 🔒 The password was changed on the router after connecting.
    • 🛡️ The network profile is damaged (try deleting it and connecting again).

    Via Windows Settings|Command Prompt (CMD)|PowerShell|Haven't tried it yet-->

    4. Manually extracting the password from the Windows configuration file

    All Wi-Fi passwords in Windows 10 are stored in encrypted form in system files. They can be extracted manually, but this will require registry editor or third-party utilities. We'll look at a safe method that doesn't modify system files.

    Steps:

    1. Open Conductor and enter in the address bar:
      C:\ProgramData\Microsoft\Wlansvc\Profiles\Interfaces

      (if the folder is not visible, enable display of hidden files in View → Hidden Elements).

    2. In the folder Interfaces Find files with the extension .xml (For example, {1234abcd-5678-efgh-90ij-klmnopqrstuv}.xml).
    3. Open the file in Notepad and find the lines:
      <name>NETWORK_NAME</name>
      

      <keyMaterial>ENCRYPTED PASSWORD</keyMaterial>

    4. Copy the value between the tags <keyMaterial> and decrypt it using PowerShell:
      [System.Text.Encoding]::UTF8.GetString((43, 228, 180, ... | %{[byte]$_}))

      (replace the numbers with those in your file).

    ⚠️ Warning: Editing files in ProgramData may disrupt network operation. Do not modify or delete files manually—only view them!
    Why is the password in the XML file encrypted?

    Windows 10 stores passwords in the format DPAPI (Data Protection API), which is linked to the user account and computer. This protects data from theft if the file falls into the wrong hands. It can only be decrypted on the same PC under the same account.

    5. View the password through the Network and Sharing Center (for older versions)

    IN Windows 10 versions 1803 and older (up to 20H2) There was an alternative method through the classic control panel. It still works, but may be missing in recent updates.

    How to find:

    • 🖱️ Right-click on the icon Wi-Fi in the tray (bottom right) → Open Network and Internet settings.
    • 🔗 Scroll down and click Network and Sharing Center.
    • 📡 Next to the name of the current network, click Wireless network (NETWORK_NAME).
    • 🔐 In the window that opens, go to the tab Security → check the box Show entered characters.

    If tabs Security no or the field is empty:

    • ⚙️ Your version Windows 10 uses the new interface (see Section 1).
    • 🔌 Network connected via Ethernet, not Wi-Fi.
    • 🔒 You do not have administrator rights.

    6. What to do if none of the methods work?

    If you've tried all the methods but the password still isn't displayed, there may be a few reasons:

    Problem Solution
    The network was connected via WPS (button on the router) The password is not saved in the system. Click WPS on the router again or reset it.
    Corporate network with 802.1X (for example, in the office) The password is stored on the authentication server. Please contact your administrator.
    The network profile is corrupted. Remove the network in Settings → Wi-Fi → Manage known networks and reconnect.
    Account without administrator rights Request access from the PC administrator or use CMD with elevated rights.

    If nothing helps, there are radical measures left:

    • 🔄 Reset your router to factory settings (button Reset on the back panel) - the password will return to the standard one (indicated on the sticker).
    • 🔧 Connect to the router via cable (Ethernet) and go to the web interface (usually 192.168.0.1 or 192.168.1.1).
    • 📱 View the password on another device (phone, tablet) if it is connected to this network.
    ⚠️ Warning: Resetting your router will delete all settings, including the network name, password, associated devices, and firewall rules. Use this method only as a last resort!

    FAQ: Frequently Asked Questions About Wi-Fi Passwords in Windows 10

    Is it possible to find out the password for a Wi-Fi connection that another user connected to on the same PC?

    Yes, but only if your account has administrator rights. Wi-Fi passwords in Windows 10 are stored at the system level, not the user level. Use CMD or PowerShell (sections 2–3).

    If you don't have administrator rights, you'll have to either request them or reset the router.

    Why is there in the command output netsh wlan show profiles Don't have the required network?

    Possible reasons:

    • The network has been removed from the list of saved networks (Settings → Wi-Fi → Manage known networks).
    • The network profile is corrupted (try connecting again).
    • You connected via Ethernet, not Wi-Fi.
    • The network name contains special characters (try enclosing it in quotes: name="My@Wi-Fi").
    Is it possible to export all Wi-Fi passwords to a file for backup?

    Yes, use this command in PowerShell (administrator):

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

    All profiles will be saved in the folder C:\WiFi_Backup\ in the form .xml-files. To import them on another PC, use:

    netsh wlan add profile filename="C:\WiFi_Backup\FILE_NAME.xml"
    Is it safe to use third-party password extraction programs?

    It is better to avoid third-party utilities like WirelessKeyView or WiFi Password Revealer, if you are unsure of their source. Risks:

    • 🕵️ The program may contain spyware (keyloggers, miners).
    • 🔓 Some utilities require disabling Windows Defender, which is dangerous.
    • 📜 They can extract not only Wi-Fi passwords, but also other stored data.

    In 99% of cases, built-in tools are sufficient Windows 10 (described in this article).

    How to protect your Wi-Fi passwords from being stolen on a shared PC?

    If several people use the computer:

    • 🔐 Create separate account without administrator rights for other users.
    • 🛡️ Disable guest network access in your router settings.
    • 🔄 Change your Wi-Fi password regularly (every 3-6 months).
    • 📵 Use MAC filtering on the router to restrict access by third-party devices.