How to View a Wi-Fi Password on a Laptop: 5 Working Methods

Forgot your home Wi-Fi password and there's no sticker with the code on your router? Or need to connect a new device but can't be bothered to look for the settings sheet? You can easily retrieve the saved password from a laptop that's already connected to the network—and do it legally, without hacking or third-party software. In this article, we'll cover all the current methods for Windows 10/11 And macOS, including bypassing guest account restrictions.

Important: If you are not the laptop's administrator (for example, if you are using a work laptop), some methods may be blocked by security policies. In this case, you will need to contact the owner of the device or router. Also, remember that extracting passwords from other people's networks without permission violates information law and may entail liability.

1. The standard method via Windows Settings (for administrators)

The easiest method is to use the built-in settings Windows OS. It works on versions 10/11 It doesn't require administrator rights unless you're already logged in with an account with those rights. Here are the step-by-step instructions:

  1. Open Start → Settings (⚙️) → Network & Internet.
  2. Select a tab Wi-Fi in the left menu.
  3. Click Managing known networks.
  4. Click on the name of the network you need, then - Properties.
  5. Scroll down to the block Network password and press Show.

If the button Show If the password is disabled or requires an administrator password, proceed to the next method. Also note that on some corporate networks, the password may not be displayed due to security policy. Group Policy.

The laptop is connected to the desired Wi-Fi network.

You have administrator rights (if required)

The network is not a guest network (for example, in a hotel or cafe)

The router does not use WPS instead of a password-->

2. Command Prompt (CMD): A Universal Method for Windows

If the graphical interface does not show the password, this will help command lineThis method works even on older versions of Windows (for example, Windows 7) and does not require additional software installation. Follow these steps:

netsh wlan show profiles

This command will list all saved networks. Remember the exact name of the one you want (case is important!). Then enter:

netsh wlan show profile name="NETWORK_NAME" key=clear

In the output results, find the line Key content — this is the password. If the command returns an error Access denied, run CMD as administrator (right click on the icon → Run as administrator).

What should I do if the network name contains spaces or Cyrillic characters?

Use quotes: name="My Wi-Fi Network"If the name contains Cyrillic characters, the command line may display them incorrectly in the output, but the password will be correct.

⚠️ Attention: In some Windows builds (for example, Windows 10 LTSC) team netsh may be disabled by security policies. In this case, try the method with PowerShell (section 4).

3. View the password through the Network and Sharing Center (alternative)

Another built-in way is to use control PanelIt is suitable for Windows 7/8/10/11 and does not require knowledge of commands. Instructions:

  1. Click Win + R, enter ncpa.cpl and press Enter.
  2. In the window that opens, find the active connection. Wi-Fi, right-click on it and select State.
  3. Click the button Wireless network properties.
  4. Go to the tab Security and check the box Show entered characters.

If the tab Security missing or fields are inactive, this means that:

  • 🔹 You are connected to a network without a password (for example, via WPS).
  • 🔹 You do not have administrator rights.
  • 🔹 The network uses Enterprise authentication (for example, in universities).

Through "Windows Settings"

Via the command line (CMD)

Through the Network and Sharing Center

Another option-->

4. PowerShell: Advanced Method for Power Users

PowerShell — a more powerful tool than CMD, and allows you to extract passwords for all saved networks with a single command. This method is useful if you need to export a list of passwords (for example, for backup). Open PowerShell as administrator and run:

(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

The command will output a table with all networks and their passwords. If you want to save the result to a file, add the following to the end:

| Out-File -FilePath "C:\WiFi_Passwords.txt"
⚠️ Attention: Saving passwords to a text file on your work computer may violate company security policies. Use this method only on personal devices.

5. How to find out the password on macOS (for Apple laptops)

On MacBook or iMac The procedure is even simpler than on Windows. Apple stores passwords in the keychain (Keychain Access), and they can be viewed without additional commands. Follow the instructions:

  1. Open Programs → Utilities → Keychain (or find via Spotlight upon request Keychain Access).
  2. In the left menu, select System or Login (depending on where the password is saved).
  3. In the search bar, enter the name of the Wi-Fi network.
  4. Double-click on the found entry and check the box. Show password and enter the password for your account macOS.

If your keychain asks for a password but you don't remember it, you can reset it through Password reset utility (booted into Recovery Mode - hold Cmd + R when turned on). On corporate Mac This method may be blocked. MDM policies (For example, Jamf or Kandji).

6. If you are not an administrator: bypass restrictions

What to do if your laptop displays an error Access denied Or does it ask for administrator rights? There are several legal workarounds:

  • 🔧 Request temporary rights. In Windows, you can try running the command prompt as administrator via Task:
    1. Create a text file with the extension .bat and contents:
      @echo off
      

      net user administrator /active:yes

      net user administrator 123456

    2. Run it as the current user (if you have permissions to modify local users).
Note: This will only work if your account is part of a group. Administrators, but with limited rights.
  • 📡 Connect to the router directly. If you have physical access to the router, you can reset it using the button Reset (hold for 10 seconds) and set it up again. The default password is usually located on a sticker (e.g. admin/admin For TP-Link).
  • 🔄 Use WPS. Many routers support connection via WPS (a button on the device's body or a PIN code). This will allow you to connect a new device without entering a password.
  • ⚠️ Attention: Resetting your router will delete all of its settings, including Wi-Fi passwords, port forwarding, and parental controlsAfter the reset, you will need to reconfigure your internet connection (the details from your provider are usually specified in your contract).
    Method Do you need administrator rights? Works on Windows Works on macOS Complexity
    Windows Settings Yes 10/11 No
    Command Prompt (CMD) Yes* 7/8/10/11 No ⭐⭐
    PowerShell Yes 10/11 No ⭐⭐⭐
    Keychain No** No All versions
    Resetting the router No Yes Yes ⭐⭐⭐⭐

    * Can be bypassed by running CMD as system via psexec (requires additional knowledge).

    ** Your macOS account password is required.

    7. Third-party programs: when built-in methods don't work

    If none of the above methods worked, you can use specialized utilities. They are suitable for security audit (For example, if you're an admin and need to check for weak passwords on your network). Popular tools:

    • 🔓 WirelessKeyView (from NirSoft) - shows all saved Wi-Fi passwords in the system. Download from the official website.
    • 🛡️ Wifi Password Revealer — portable utility without installation.
    • 📊 Magical Jelly Bean WiFi Password Revealer — exports passwords to CSV.

    All of the programs listed require administrator privileges and may be blocked by antivirus software (false positives for "hacker tools"). Before using them, add them to the exclusions list or temporarily disable protection.

    ⚠️ Attention: Download utilities only from the official websites of the developers. Many "Wi-Fi hackers" on the internet contain malware (for example, Trojan.Win32).

    8. Common mistakes and their solutions

    When trying to extract a password, you may encounter common problems. Here's how to solve them:

    • 🚫 "No access to network profile."
      Reason: Your account does not have permission to view passwords. Solution: Log in as an administrator or use PowerShell with elevated rights.
    • 🔍 "Network not found in the list."
      Reason: The laptop hasn't connected to this network before. Solution: Connect to the Wi-Fi network at least once so Windows can save the password.
    • 🔄 "The password is displayed as asterisks and cannot be copied."
      Reason: Windows interface limitation. Solution: Use CMD or PowerShell to extract the text password.
    • 📵 "The router does not respond to reset."
      Reason: button Reset The button may be recessed or blocked. Solution: Use a paperclip to press it down (hold for 15-30 seconds).
    • FAQ: Answers to frequently asked questions

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

      No, if the laptop has never been connected to the network, the password is not saved in the system. The only options are:

      • View the password on another device that has connected to this network.
      • Reset the router and configure it again (the default password is usually indicated on the sticker).
      • Exploiting router vulnerabilities (illegal and illegal).
      Why does the command line display gibberish instead of a password?

      This happens due to incorrect encoding. CMD when displaying Cyrillic characters. Solutions:

      1. Change the font in the window properties to Lucida Console.
      2. Use PowerShell - it displays Unicode correctly.
      3. Copy the output into notepad - the symbols will be displayed correctly there.
      Is it possible to find out the password from an Android phone?

      Yes, but only if you have root rightsWithout them, Android won't let you view saved Wi-Fi passwords. Instructions for rooted devices:

      1. Install a file manager with root access (e.g. Root Explorer).
      2. Go to /data/misc/wifi/.
      3. Open the file WifiConfigStore.xml and find the line <string name="PreSharedKey">....

    On iPhone It is impossible to extract the password without jailbreak.

    What should I do if my router displays an error after a reset?

    After resetting, the router may:

    • Do not connect to the Internet (check your settings) PPPoE or DHCP from the provider).
    • Request a firmware update (download it from the manufacturer's website, for example, TP-Link).
    • Have a non-standard IP address (try accessing 192.168.0.1, 192.168.1.1 or 10.0.0.1).
    • If the router does not respond to 192.168.1.1, check its IP via command ipconfig /all (look for the line Main gateway).

    How to protect your Wi-Fi from hacking after a reset?

    After resetting the router:

    1. Change the default password (admin/admin) to complex (for example, k7#pL9!qW2$vN5).
    2. Turn it off WPS in the router settings (vulnerable to brute force).
    3. Turn on WPA3 instead of WPA2 (if supported by devices).
    4. Hide SSID (network name) or use MAC filtering.

    For maximum security, please set up guest network for friends and leave the main network only for your devices.