How to view your Wi-Fi password on a Windows 11 computer: all the working methods

Have you forgotten your home Wi-Fi password, and is it hidden under a sticker on your router that's long since worn off? Or do you need to connect a new gadget but can't remember the password combination? Windows 11 There are several ways to retrieve a saved wireless network password—both through the graphical interface and the command line. The main requirement is that your computer must have been connected to this network at least once.

In this article we will look at 5 reliable methods, including hidden system features that work even without administrator rights (in some cases). You'll also learn how to protect your data if your password falls into the wrong hands, and what to do if none of the above methods work. Important: All instructions are relevant for Windows 11 any build, but the interface may differ slightly depending on the version.

Warning: Extracting passwords from other people's devices without the owner's permission breaks the law (Article 272 of the Criminal Code of the Russian Federation on unauthorized access to computer information). This article is intended only for restoring access to his own networks.

📊 Why did you need to know the Wi-Fi password?
Connect a new gadget
Forgot your password
I'm helping a relative/friend
Other

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

If your computer is already connected to Wi-Fi, the fastest way to find the password is through the standard system settings. This method does not require administrator rights and works on all versions. Windows 11.

Here are the step-by-step instructions:

  1. Open the menu Start and select Parameters (gear icon) or click Win + I.
  2. Go to the section Network and InternetWi-Fi.
  3. Click on the line Managing known networks.
  4. Find your network in the list and click on it.
  5. On the page that opens, select View network properties (or Network information in some assemblies).
  6. Scroll down to the block Security parameters and click on the button Show next to the field Network security key.

After this, the password will be displayed in text form. Please note: if the button Show If the account is inactive, it means your account doesn't have permission to view this information. In this case, try the following methods.

Make sure your computer is connected to the correct Wi-Fi network|

Please check that you have administrator rights (if the "Show" button is disabled)|

Update your network adapter drivers (if your network is not listed)|

Restart your computer if Settings doesn't open-->

2. Using Command Prompt (CMD) to extract the password

The command line is a versatile tool that allows you to retrieve a Wi-Fi password even if the graphical interface isn't working correctly. This method requires administrator privileges, but is more stable than using the settings via Parameters.

Follow the instructions:

  1. Open Command line as administrator. To do this:
    • Click Win + S, enter cmd.
    • In the search results, right-click on Command line and select Run as administrator.
  • Enter the command to view all saved networks:
    netsh wlan show profiles

    Remember the exact name of your network (case is important!).

  • Enter the command to extract the password (replace NETWORK_NAME to the real name):
    netsh wlan show profile name="NETWORK_NAME" key=clear
  • Find the line in the results Key content - this is your password.
  • If the command returns an error Failed to execute command, check:

    • 🔹 The network name is correct (including spaces and case).
    • 🔹 Administrator rights (run CMD again as administrator).
    • 🔹 Connect to the network (the computer must be connected to it at least once).

    3. Extracting the password via PowerShell (CMD alternative)

    PowerShell — a more powerful tool than the standard command line. It allows you to not only view passwords but also export them to a file for convenience. This method is suitable for experienced users.

    Instructions:

    1. Launch PowerShell as administrator:
      • Click Win + X and select Windows Terminal (Administrator).
      • Or enter in the search PowerShell, right click and select Run as administrator.
  • Enter the command to display all saved networks:
    (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
  • After running the command, you'll see a table with all networks and their passwords. If you need to save the data to a file, add the following to the end of the command:

    | Out-File -FilePath "C:\WiFi_Passwords.txt"

    File WiFi_Passwords.txt will appear on the disk C:.

    What should I do if PowerShell gives me a "Name not recognized" error?

    The error occurs if the network name contains Cyrillic characters or spaces. Try:

    1. Rename the network in the router to Latin (for example, MyWiFi instead of MyWiFi).

    2. Use Command Prompt (CMD) instead of PowerShell.

    3. Enclose the network name in single quotes: name='My Wi-Fi'

    4. Viewing passwords in Windows configuration files (for advanced users)

    All passwords for Wi-Fi networks in Windows 11 are stored encrypted in system files. They can be extracted manually, but this requires access to the registry or specialized utilities. This method is suitable if the previous methods fail.

    Here's how to do it:

    1. Open Registry Editor:
      • Click Win + R, enter regedit and press Enter.
      • Confirm permission to make changes (if prompted by UAC).
  • Follow the path:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Wlansvc\Interfaces\

    There will be folders with unique network interface identifiers.

  • In each folder, find the section Profiles — data about connected networks is stored there.
  • Export the desired section (right click → Export) and open the file in Notepad.
  • Find the line KeyMaterial — This is an encrypted password. To decrypt it, you will need a third-party utility (for example, WirelessKeyView from NirSoft).
  • An alternative way is to use a free utility WirelessKeyView:

    • 🔹 Download the program from NirSoft official website (check the file for viruses!).
    • 🔹 Launch WirelessKeyView.exe (administrator rights are not required).
    • 🔹 Find your network in the table - the password will be in the column Key (Ascii).
    ⚠️ Attention: Utilities like WirelessKeyView may be blocked by your antivirus as "potentially dangerous." This is a false positive—the program is simply reading system data. However, download it only from the official website!

    5. How to find out your Wi-Fi password without administrator rights

    If your account is in Windows 11

    If you don't have administrator rights, most of the methods in this article will be unavailable. However, there is a workaround - via creating a temporary administrator account (if you have physical access to the computer).

    Instructions:

    1. Click Win + R, enter lusrmgr.msc and press Enter.
    2. In the window Local users and groups select a folder Users.
    3. Right click → New user.
    4. Fill in the fields:
      • Username: TempAdmin
      • Full name: Temporary Administrator
      • Password: Create a strong password (remember it!)
      • Uncheck the box Password change required at next login.
  • Double click on the new user → go to the tab Group membership → click Add.
  • In the field Enter the names of the objects to select write Administrators and press OK.
  • Restart your computer and sign in with the new account. You can now use any method from this article.
  • ⚠️ Attention: After extracting the password Be sure to remove the temporary administrator using the same utility. lusrmgr.mscLeaving an account with admin rights is a security hole!

    If even this method is not available (for example, on a work computer with strict security policies), the only option left is:

    • 🔹 Ask your network administrator for the password.
    • 🔹 Reset the router to factory settings (by pressing the button) Reset for 10 seconds) and configure it again.
    • 🔹 Connect to the router via cable and go to its web interface (usually at 192.168.0.1 or 192.168.1.1).

    6. What to do if none of the methods worked

    If you've tried all the methods and still can't extract the password, here's what to do:

    Problem Possible cause Solution
    The "Show" button is inactive in "Options" You do not have administrator rights or the network is connected via a guest profile. Use PowerShell or create a temporary admin (section 5)
    Team netsh returns an error The network is not saved in profiles or the system file is damaged. Check the network name or restore the system via sfc /scannow
    The network is not displayed in the list of saved networks. The computer has never connected to this network. Connect to the network at least once or reset the router
    The password is displayed as dots or asterisks. Group Policy restrictions (often on work PCs) Please contact your system administrator or use LiveCD With Windows PE

    If the problem is with the router (for example, it was reset or the password was changed), try:

    1. Connect to it via cable (LAN).
    2. Login to the web interface (usually 192.168.0.1 or 192.168.1.1).
    3. Enter login/password (by default often admin/admin or indicated on the router sticker).
    4. Find a section Wireless or Wi-Fi and view/change the password.

    Critical information: If your router is rented from a provider (e.g., Rostelecom or Beeline), resetting the settings may result in loss of internet access. In this case, contact your provider's support team—they will provide a new password or help restore access.

    7. How to secure your Wi-Fi after password recovery

    If you've managed to extract the password but suspect it may have fallen into the wrong hands (for example, if someone else has used the computer), you should change it and strengthen your network security. Here's what to do:

    • 🔹 Change the password on your router:
      • Go to the router's web interface (192.168.0.1 or 192.168.1.1).
      • Find the section Wireless Security or Wi-Fi Security.
      • Select encryption type WPA2-PSK (or WPA3, if supported).
      • Create a new password that is at least 12 characters, with numbers, letters and special characters.
    • 🔹 Disable WPS: This feature simplifies connection, but makes the network vulnerable to hacking. Find the option WPS in the router settings and deactivate it.
    • 🔹 Hide SSID: Disable the option in your router settings. Broadcast SSID - this will make your network invisible to outsiders.
    • 🔹 Update your router firmware: Go to the section System ToolsFirmware Upgrade and install the latest version of the software.

    We also recommend:

    • 🔹 Set up guest network for friends - it will have a separate password and limited access to your local network.
    • 🔹 Enable MAC address filtering (although this is not a panacea - MAC is easy to counterfeit).
    • 🔹 Periodically check the list of connected devices in the router's web interface.
    ⚠️ Attention: If you find unfamiliar devices in the list of connected devices, immediately change your Wi-Fi password and scan your computers for viruses. Unauthorized devices on your network could be stealing traffic or data!

    FAQ: Frequently asked questions about Wi-Fi passwords in Windows 11

    Is it possible to find out the password for a Wi-Fi network that the computer has never connected to?

    No. Windows 11 Stores passwords only for networks it has connected to at least once. If the network isn't on the list Managing known networks, it's impossible to extract its password through the system. In this case, the following remains:

    • Look at the password on the router sticker.
    • Reset the router to factory settings (button Reset).
    • Request a password from the network administrator.
    Why does the command line display a random string of characters instead of my password?

    This happens if the network is using dynamic security key (for example, in corporate networks with 802.1X or WPA-Enterprise). In such cases, the password is not stored in the system; it is regenerated each time you connect. To gain access, contact your network administrator.

    Is it possible to find out the Wi-Fi password from an Android or iPhone phone?

    Yes, but the methods are different:

    • Android (rooted): Use apps like WiFi Password Viewer (requires root).
    • Android without root: On some firmware (for example, MIUI or EMUI) The password can be viewed in the router settings via the app Wi-Fi.
    • iPhone: On iOS There's no built-in way to view passwords. You can use workarounds:
      • Make a backup via iTunes and extract passwords using iBackup Viewer.
      • If you have Mac, the password can be found in Keychain (Keychain Access).

    Without root rights or jailbreak, it is almost impossible to extract the password from a mobile device.

    What should I do if Windows 11 won't connect to the network after changing the router password?

    This happens because the old password is saved in the system. To fix it:

    1. Open ParametersNetwork and InternetWi-FiManaging known networks.
    2. Find your network and click Forget.
    3. Please reconnect using the new password.

    If the problem persists, check:

    • 🔹 The password you entered is correct (case sensitive!).
    • 🔹 Encryption type in the router (must be WPA2-PSK or WPA3).
    • 🔹 Update your network adapter driver via device Manager.
    Is it possible to find out the password for my neighbors' Wi-Fi?

    No, and there's no point in trying. Extracting passwords from other people's networks without permission:

    • 🔹 Violates information law (Article 272 of the Criminal Code of the Russian Federation).
    • 🔹 This may result in your MAC address being blocked in your neighbor's router.
    • 🔹 Risk of virus attacks if you connect to a suspicious network.

    If you urgently need internet, it’s better to:

    • 🔹 Ask your neighbors for the password politely.
    • 🔹 Use mobile Internet (USB modem or sharing from your phone).
    • 🔹 Find the nearest hotspot with free Wi-Fi (cafes, libraries, shopping centers).