Where is the Wi-Fi password stored in Windows 10: all the ways to extract it

Forgot your home or office Wi-Fi password, but you can connect to your computer with Windows 10 Saved? This situation is familiar to many: the router was set up a long time ago, the password sticker has worn off, and now guests or a new device need access to the network. Fortunately, the operating system stores all saved wireless network passwords—they can be retrieved without resetting the router or calling the provider.

In this article you will find 5 proven methods get Wi-Fi password in Windows 10 — from standard system tools to advanced methods using PowerShell and registry. We'll also explain where this data is physically stored on disk, how to export it, and why some methods may not work on corporate networks. Important: All instructions are intended for legal use — extracting passwords from other people's devices without the owner's consent is illegal.

If you administer a network in an office or help relatives with setting up the Internet, save this article in your bookmarks - it will come in handy every time you need to remember a forgotten password Wi-Fi.

1. Where Windows 10 stores Wi-Fi passwords: technical details

operating system Windows 10 stores all data about wireless networks the device has ever connected to in two places:

  • 📁 WLAN configuration file - encrypted file wlansec.xml in the system folder. It contains network SSIDs and encrypted passwords, but it cannot be edited directly.
  • 🗝️ Credential storage — part of the registry Windows, where passwords are stored in encrypted form under the account of the user who made the connection.
  • 🔧 WLAN AutoConfig Service — manages all saved networks and provides access to their parameters via the command line or graphical interface.

It is important to understand that passwords are not stored in the open - they are encrypted using algorithms Windows Data Protection API (DPAPI)This means that they can only be extracted:

  • 🔹 From your current account (if you have administrator rights).
  • 🔹 Using system utilities that decrypt data on the fly.
  • 🔹 Using third-party programs that use the same API.
⚠️ Warning: If you're trying to retrieve a password on a work computer connected to a corporate domain network, some methods may not work. Administrators often configure group policies to block access to saved passwords.

Now let's move on to practice. We'll start with the simplest method—through the graphical interface. Windows 10.

📊 How often do you forget your Wi-Fi password?
Often, almost every month
Sometimes, once every six months
It's nearby, but I'm too lazy to look for the sticker on the router.
I never forget

2. Method 1: View the password through "Network Settings" (without commands)

This is the most obvious and secure method, which does not require administrator rights (if you connected to the network from the current account). The instructions are suitable for Windows 10 all builds, including the latest updates 22H2.

Steps to extract password:

  1. Open the menu Start and select Parameters (gear icon) or click Win + I.
  2. Go to the section Network and InternetWi-Fi.
  3. Scroll down and click Managing known networks.
  4. Find the required network in the list and click on it.
  5. Click the button Properties.
  6. Scroll to the block Security parameters and check the box Show entered characters.

After that in the field Network security key The password will be displayed in clear text. You can copy it or write it down.

Make sure you are logged in with the same account you used to connect to the network|Make sure you have permission to view passwords (some corporate networks require administrator privileges)|Update your Wi-Fi adapter drivers through Device Manager|Try the alternative methods in this article-->

⚠️ Attention: If the button Show entered characters is missing or inactive, this means that the network is configured using safety certificate (for example, in offices or universities). In this case, it is impossible to extract the password in plaintext; you will need to contact the network administrator.

This method works 90% of the time for home routers (TP-Link, ASUS, Keenetic etc.), but may not work for public access points (for example, in cafes or airports) where portal authorization is used.

3. Method 2: Extracting the password via the command line (CMD)

If the graphical interface is unavailable for some reason or you prefer to work with the console, you can use command lineThis method is universal and works even in safe mode.

Instructions:

  1. Open Command line as administrator (click Win + X and select the appropriate item).
  2. Enter the command to view all saved networks:
    netsh wlan show profiles

    Find the name in the list (SSID) the required network.

  3. Display network information including password:
    netsh wlan show profile name="NETWORK_NAME" key=clear

    Replace NETWORK_NAME on real SSID (For example, netsh wlan show profile name="MyWiFi" key=clear).

  4. In the block Security parameters find the line Key content - this is the password.

Example of command output:


SSID Name: MyWiFi

...

Security parameters

Authentication type: WPA2-Personal

Encryption type: CCMP

Key contents: 12345678AbC

This method is suitable for automation: you can create .bat- a file that will output all passwords at once. For example:

@echo off

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

netsh wlan show profile name="%%a" key=clear | findstr "Key Contents"

)

pause

⚠️ Warning: If you are running a script on a work computer, make sure it does not violate your corporate security policy. Some companies block execution. netsh for ordinary users.
netsh wlan export profile folder="C:\WiFi_Passwords\" key=clear

Files with extension .xml will contain passwords in clear text (keep them in a safe place!).-->

4. Method 3: Using PowerShell to extract passwords

PowerShell — a more powerful tool than CMD, and allows for flexible management of network data. For example, you can get the password for a specific network or list all saved ones. SSID with passwords.

Command to extract password of one network:

(netsh wlan show profile name="NETWORK_NAME" key=clear) -Match 'Key Contents' | ForEach-Object {

$_.Split(':')[1].Trim()

}

To withdraw all saved passwords in table form, use this script:

$profiles = netsh wlan show profiles | Select-String "All user profiles: (.*)"

$results = @()

foreach ($profile in $profiles) {

$name = ($profile -split ":")[1].Trim()

$password = (netsh wlan show profile name="$name" key=clear) -Match 'Key Contents' | ForEach-Object {

$_.Split(':')[1].Trim()

}

$results += [PSCustomObject]@{

"SSID" = $name

"Password" = $password

}

}

$results | Format-Table -AutoSize

The result will look like this:

SSIDPassword
MyWiFi12345678AbC
OfficeNetqwerty12345
Guestwelcome123

Advantage PowerShell the fact that you can save the results in CSV-file for further use:

$results | Export-Csv -Path "C:\WiFi_Passwords.csv" -NoTypeInformation -Encoding UTF8
⚠️ Warning: Scripts PowerShell may be blocked by execution policy. If you see an error, first allow script execution with the command: Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

5. Method 4: Finding a password in the Windows registry (for experienced users)

Passwords from Wi-Fi are stored in the registry Windows, but in encrypted form. Extracting them requires the use of decoding utilities or scripts. This method is suitable for advanced users, as it requires caution when working with the registry.

Instructions:

  1. Open Registry Editor (Win + R → enter regedit).
  2. Follow the path:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Wlansvc\Interfaces\

    There will be subfolders with GUID-network interface identifiers.

  3. In each folder, find the section Profile, where network data is stored.
  4. Passwords are encrypted in binary format in the parameter MSM Security.

To decrypt the password, you can use Python-script with module win32crypt (deprecated in newer versions) Windows) or specialized utilities like WirelessKeyView from NirSoft.

Example of registry structure:

PathParameterMeaning
HKEY_LOCAL_MACHINE\...\Interfaces\{GUID}\Profile\MyWiFiSSIDMyWiFi
HKEY_LOCAL_MACHINE\...\Interfaces\{GUID}\Profile\MyWiFiMSM SecurityEncrypted data
HKEY_LOCAL_MACHINE\...\Interfaces\{GUID}\Profile\MyWiFiConnectionModeauto
⚠️ Warning: Incorrectly editing the registry may cause malfunctions WindowsBefore making changes, create a system restore point or export the registry key to a file (File → Export).
How to decrypt a password from the registry manually?

To do this you will need:

1. Export binary parameter MSM Security to file.

2. Use the utility DPAPI (For example, mimikatz) for decoding.

3. Alternatively, use ready-made tools like WiFi Password Revealer.

The process is labor-intensive and requires knowledge in the field of security. Windows, so for most users it is easier to use methods 1-3 from this article.

6. Method 5: Third-party utilities for viewing passwords

If you need to quickly retrieve all saved passwords without commands or scripts, you can use free utilities. They automatically read data from the vault. Windows and display them in a convenient form.

Popular programs:

  • 🔧 WirelessKeyView (from NirSoft) - shows all SSID and passwords, supports export to TXT/HTML.
  • 🔍 WiFi Password Revealer - simple interface with the ability to copy the password to the clipboard.
  • 🛡️ Magical Jelly Bean WiFi Password Revealer — additionally displays the encryption type and MAC address of the router.
  • 📊 NetPass — an advanced utility for extracting passwords from Wi-Fi, VPN and even email accounts.

Example of work WirelessKeyView:

  1. Download the program from the official website NirSoft (check SHA-256 file hash for security).
  2. Launch WirelessKeyView.exe (no installation required).
  3. The table will display all networks with the following columns:
    • 📶 Network Name (SSID)
    • 🔑 Key (Ascii) — password in clear text
    • 🔢 Key Index — key index (for WPA2-Enterprise)
  • To export data, click File → Save All Items.
  • ⚠️ Attention: Some antivirus programs (for example, Avast or Kaspersky) may block password extraction tools, considering them potentially dangerous. This is a false positive—add the program to the exceptions list or temporarily disable protection.

    7. Where are the password files physically stored on the disk?

    All data about wireless networks in Windows 10 are stored in the system folder:

    C:\ProgramData\Microsoft\Wlansvc\Profiles\Interfaces\

    Here you will find files with the extension .xml, named after GUID network interfaces. Each file contains:

    • 📡 Network information (SSID, encryption type).
    • 🔐 Encrypted password in the tag <keyMaterial>.
    • 📅 Date of last connection.

    Example file contents (password encrypted):

    <WLANProfile xmlns="http://www.microsoft.com/networking/WLAN/profile/v1">
    

    <name>MyWiFi</name>

    <SSIDConfig>

    <SSID>

    <hex>4D7957694669</hex>

    <name>MyWiFi</name>

    </SSID>

    </SSIDConfig>

    <connectionType>ESS</connectionType>

    <MSM>

    <security>

    <authEncryption>

    <authentication>WPA2PSK</authentication>

    <encryption>AES</encryption>

    <useOneX>false</useOneX>

    </authEncryption>

    <sharedKey>

    <keyType>networkKey</keyType>

    <protected>true</protected>

    <keyMaterial>01000000D08C9DDF...</keyMaterial><!-- The password is encrypted here -->

    </sharedKey>

    </security>

    </MSM>

    </WLANProfile>

    To read the password from this file, you will need:

    1. Copy the file to another computer (if the current one is locked).
    2. Use a decoding utility DPAPI-data (for example, mimikatz).
    3. Or take advantage of PowerShell- script for decryption (see Method 4).
    ⚠️ Warning: Copying or modifying files in ProgramData\Microsoft\Wlansvc may disrupt the service WLAN. Don't edit them manually!

    8. Common problems and solutions

    Sometimes users encounter difficulties when trying to retrieve a password. Let's look at common situations and how to resolve them.

    ProblemPossible causeSolution
    The "Show input characters" button is inactive. The network uses a security certificate (eg 802.1X) Contact your network administrator or check your router settings.
    Team netsh gives the error "Invalid profile" The account does not have permission to view passwords. Launch CMD as administrator
    The password is displayed as dots or asterisks. This is a disguise of the interface, the real password is available Use PowerShell or third-party utilities
    List of networks in netsh wlan show profiles empty Service WLAN AutoConfig disabled Run it through services.msc or by team net start WlanSvc
    Utilities like WirelessKeyView they don't show passwords Antivirus blocks access to password storage Add the program to exceptions or temporarily disable protection

    If none of the methods worked, check:

    • 🔌 Are you currently connected to the internet? Some methods require an active connection.
    • 👤 Are you logged in using the same account you used to connect to the network?
    • 🔄 Restart your computer - sometimes the service WLAN does not work correctly after updates.

    As a last resort, you can reset the password on the router (usually by pressing the button Reset for 10 seconds) and configure the network again. However, this will require access to the device itself.

    FAQ: Answers to Frequently Asked Questions

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

    Yes, but only if your account has administrator rights. Passwords are stored encrypted for each user, but an administrator can decrypt them. Use PowerShell or utilities like WirelessKeyView (run them as administrator).

    Will these methods work on Windows 11?

    Yes, all the methods described (via Parameters, netsh, PowerShell and the registry) work in Windows 11The interface may be slightly different, but the principles of storing passwords remain the same. For example, in Windows 11 path to network settings: Settings → Network & Internet → Wi-Fi → Manage known networks.

    Is it possible to extract a password from a computer that is not currently connected to this network?

    Yes, if the computer has been connected to the network before. Passwords are saved in the system even after disconnection. Use netsh wlan show profiles or check the list of networks in Settings → Network & Internet → Wi-Fi → Manage known networks.

    Are there any mobile apps to extract Wi-Fi passwords from Windows?

    No, mobile apps (on Android or iOS) cannot access the password storage WindowsTo do this, you need to physically work on the computer or connect to it remotely (for example, via RDP or TeamViewer).

    Is it legal to use these methods?

    Yes, if you extract passwords from own device or have the owner's permission. Unauthorized access to other people's networks or devices is classified as a violation of the law (Article 272 of the Criminal Code of the Russian Federation "Unauthorized access to computer information"). All methods in this article are intended to legal use.