How to connect to Wi-Fi on a laptop if you forgot the password: a step-by-step guide

Forgotten Wi-Fi passwords are one of the most common problems laptop users face. The situation is exacerbated if you previously connected to the network automatically and now need to enter the security key manually—for example, after reinstalling Windows or performing a factory reset. Fortunately, there are several proven ways to restore network access without calling your ISP or resetting your router to factory settings.

In this article, we'll cover all the current methods: from viewing saved passwords in Windows settings to using specialized utilities. You'll learn how to Windows 10/11, macOS (if we are talking about MacBook), as well as what to do if the laptop has never connected to this network. We will separately consider the nuances for public access points and corporate networks with WPA2-Enterprise.

Important: Some methods require administrative privileges or physical access to the router. If you're using a work laptop with limited privileges, first check with your IT department about the security policy.

1. Viewing a saved password in Windows

If the laptop has previously connected to this network, the password is most likely saved in the system. Windows 10/11 You can extract it without third-party programs. Here's how:

Open Control Panel → Network and Internet → Network and Sharing Center. In the section Active Networks Click on the name of your Wi-Fi network. In the window that opens, click Wireless Properties, then go to the tab "Safety". Check the box next to "Show input characters" — the password will become visible in the field Network Security Key.

The laptop is connected to the network (or was connected previously)

You have administrator rights

The network name (SSID) matches the desired access point

The network is not a guest network (the password may not be saved)-->

If the point Wireless Properties No, try the alternative route through Command line:

  1. Launch CMD as administrator (click Win + X and select the appropriate item).
  2. Enter the command:
    netsh wlan show profile name="NETWORK_NAME" key=clear

    Replace NETWORK_NAME to the real SSID of your Wi-Fi network (with quotes!).

  3. Find the line Key Contents - this is your password.
⚠️ Attention: In corporate networks with 802.1X (for example, in offices or universities) this method will not work - the password is stored in encrypted form and requires a certificate for decryption.

2. Using Windows Credential Manager

In some cases, Wi-Fi passwords are stored in Credential Manager - especially if the network was added through Windows Domain or Azure ADTo check:

Open Control Panel → User Accounts → Credential Manager. In the section Windows Credentials Find the entry with the name of your Wi-Fi network. Click on it and select "Show" — the system will ask for your Windows account password. Once entered, the network security key will be displayed.

This method does not always work, but can be useful for networks connected via VPN or Proxy. For example, if you used FortiClient or Cisco AnyConnect to connect to corporate Wi-Fi.

What should I do if the Credential Manager is empty?

If your network isn't listed, it means the password is stored elsewhere (for example, in the registry or Wi-Fi driver configuration files). In this case, try the methods in the following sections or use third-party utilities like WirelessKeyView.

3. Extracting the password through the Windows registry

Wi-Fi passwords are stored encrypted in the Windows registry. They can be extracted manually, but the process requires caution—incorrect actions can damage the system. Here are the step-by-step instructions:

  1. Click Win + R, enter regedit and confirm the launch.
  2. Follow the path:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Wlansvc\Interfaces\

    There will be folders with interface identifiers (for example, {a1b2c3d4-5678-90ef-1234-567890abcdef}).

  3. In each folder, find the section ProfileYOUR_NETWORK_NAMEKeyMaterialThe value of this parameter is the encrypted password.
  4. Copy the value KeyMaterial and use an online decoder (for example, Base64 Decoder) or utility NirSoft WirelessKeyView for decryption.

This method is suitable for experienced users. If you're unsure, it's better to use specialized programs (see the next section).

⚠️ Attention: Editing the registry may cause Windows to malfunction. Before making changes, create a system restore point (Control Panel → Recovery → Configure System Restore).

View in Wi-Fi settings

Used third-party programs

I reset the router

Never forgot my password-->

4. Third-party password recovery programs

If standard methods fail, specialized utilities can help. They scan the system and extract all saved Wi-Fi passwords. Here are the most reliable tools:

  • 🔑 WirelessKeyView (from NirSoft) is a free portable utility that displays all saved security keys. It works without installation and supports Windows 7-11.
  • 🛡️ WiFi Password Revealer — a simple program with a graphical interface. Allows you to export passwords to .txt or .csv.
  • 🔍 Magical Jelly Bean WiFi Password Revealer — extracts passwords and displays additional information about the network (encryption type, router MAC address).
  • 🖥️ PassFab WifiKey — a paid solution with advanced features, including password recovery from Hotspot And VPN.

How to use WirelessKeyView:

  1. Download the program from NirSoft official website (select the version for your OS bitness).
  2. Unzip the archive and run WirelessKeyView.exe (administrator rights are not required).
  3. Find your network in the table - the password will be in the column "Key (Ascii)".
  4. Export data via if necessary File → Save All Items.

Important: Some antivirus programs (for example, Avast or Kaspersky) may block NirSoft utilities as potentially dangerous. This is a false positive—please add the program to your exceptions.

5. Resetting the password through the router settings

If the laptop has never been connected to the network or the previous methods didn't work, you have two options: reset the password through the router's web interface or perform a hard reset. The first method is preferable, as it doesn't require setting up the device from scratch.

To access the router control panel:

  1. Connect your laptop to the router via cable (Ethernet) or via another Wi-Fi network (if the router distributes several SSIDs).
  2. Open your browser and enter your router's IP address in the address bar. This is usually:
    • 192.168.0.1 (For TP-Link, D-Link)
    • 192.168.1.1 (For ASUS, Zyxel)
    • 192.168.8.1 (For Huawei)
    • 10.0.0.1 (For Apple AirPort)
  • Enter your username and password to log in. By default, this is often admin/admin or admin/passwordFor exact information, please refer to the router's sticker.
  • Go to the section Wireless (or Wi-Fi, Wireless network) and find the field Password/Key/PasswordHere you can change or view the current key.
  • Router manufacturer Default IP address Default login/password Wi-Fi password section
    TP-Link 192.168.0.1 or 192.168.1.1 admin/admin Wireless → Wireless Security
    ASUS 192.168.1.1 admin/admin Wireless → General → WPA Pre-Shared Key
    Zyxel Keenetic 192.168.1.1 admin/1234 Wi-Fi → Access Point → Network Key
    Huawei 192.168.8.1 admin/admin or telecomadmin/admintelecom WLAN → WLAN Basic Configuration → WPA PreSharedKey
    MikroTik 192.168.88.1 admin (password is empty) Wireless → Security Profiles → WPA PSK
    ⚠️ Attention: If you rent a router from a provider (for example, Rostelecom, Beeline, MTS), access to settings may be restricted. In this case, please contact technical support – they will provide a password or reset it remotely.

    6. Hard reset the router (if nothing helps)

    If all previous methods have proven futile, the last option is to reset the router to factory settings. This will erase all user settings, including the Wi-Fi password, and return the device to its original state. After the reset, you will be able to connect to the network using the information on the sticker on the router (usually this is the SSID, like TP-Link_1234 and password admin or empty).

    How to perform a reset:

    1. Find the small button on the back of the router. Reset (sometimes it is recessed into the body).
    2. Take a paperclip or toothpick and press and hold the button for 10-15 secondsuntil the lights on the router start flashing or turn off.
    3. Release the button and wait for the reboot (1-2 minutes).
    4. Connect to the network with the factory name and password (indicated on the sticker).
    5. Go to your router's control panel and set up a new network with the desired name and password.
    6. Please note that after the reset you will have to reconfigure:

      • 🌐 Internet connection (enter your provider's information: PPPoE, L2TP or DHCP).
      • 📡 Wi-Fi settings (network name, channel, encryption).
      • 🔒 Passwords for connecting other devices (smartphones, tablets).
      • 🖧 Rules NAT, Port Forwarding And Parent Control (if used).
      ⚠️ Attention: On some routers (for example, MikroTik or Ubiquiti) reset button Reset may not fully restore factory settings. In this case, you will need to reflash the firmware via Netinstall or TFTP.

      7. Alternative ways to connect without a password

      If password recovery is not possible, but you urgently need internet access, consider temporary solutions:

      • 📱 Sharing Internet from a smartphone. Turn on Modem mode in the phone settings (on Android: Settings → Network & Internet → Access Point; on iPhone: Settings → Tethering). Connect the laptop to the created network.
      • 💻 Using EthernetConnect your laptop to the router with a cable—this will give you internet access without entering a Wi-Fi password.
      • 🔄 WPS connectionIf the router supports Wi-Fi Protected Setup (WPS), press the button WPS on the device body, then select the network on the laptop and confirm the connection. Please note: WPS is vulnerable to hacking, so after connecting, disable this feature in your router settings.
      • 🏢 Public networksCafes, hotels, and airports often have open Wi-Fi networks (for example, Free_WiFi or Guest). Check the password with the administrator.

      For corporate networks with WPA2-Enterprise (used in offices and universities) It is not possible to recover the password on your own - contact the IT department for a new certificate or credentials.

      Common mistakes and how to avoid them

      When trying to recover a password, users often encounter typical problems. Here are the most common ones and their solutions:

      Problem Possible cause Solution
      There is no password saved in Windows settings. The network was connected via third-party software (for example, Connectify or Virtual Router) Check the program settings or uninstall it, then reconnect using standard Windows tools.
      Team netsh wlan show profile gives an error The network name was entered incorrectly or the network is not saved in the profiles. Check the exact SSID name (case sensitive!) with the command netsh wlan show profiles
      Unable to access the router via IP address The router's IP address has changed or the device is not responding. Find out your current IP address through ipconfig (look for Main gateway) or reset the router
      There is no internet after resetting the router. Connection to the provider is not configured (no data available) PPPoE or VLAN) Call your provider's support team - they will provide the necessary parameters.
      Third-party programs do not show the password The password is stored in encrypted form (for example, in domain networks) Use reset methods through the router or contact your network administrator.

      If none of the methods worked, check:

      • 🔌 Is the power cable connected correctly and Ethernet (if used).
      • 🔄 Have you rebooted your laptop and router (sometimes this solves problems with displaying saved passwords).
      • 🛡️ Is your antivirus blocking access to network settings (temporarily disabling it may help).

      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 hasn't been connected to the network before, the password isn't saved in the system. In this case, the following remains:

      • Ask the network owner for the password.
      • Reset the router (if you have physical access).
      • Exploit vulnerabilities WPS (not recommended due to low security).

      Hacking into other people's networks is illegal and punishable under Article 272 of the Russian Criminal Code ("Unauthorized access to computer information").

      Why does the command line display hieroglyphs or an empty field instead of a password?

      This means that:

      • The password is stored in encrypted form (typical for corporate networks).
      • The network profile is damaged or deleted.
      • You are using Windows XP or an outdated OS version (update the system).

    Try extracting the password through the registry or third-party utilities.

    How do I connect to Wi-Fi on my MacBook if I forgot my password?

    On macOS passwords are stored in Connected KeychainTo view them:

    1. Open Programs → Utilities → Keychain.
    2. Find your network name in the list and double-click it.
    3. Check the box Show password and enter the password for your account Mac.

    If your keychain is locked, unlock it via Settings → Keychain.

    What should I do if my router displays an "Incorrect password" error when connecting?

    The problem may be related to:

    • Typo in password (check case!).
    • By changing the encryption type on the router (for example, with WPA2 on WPA3).
    • Limitation on MAC address (add the laptop's address to the whitelist on the router).
    • Wi-Fi driver failure (update driver via device Manager).

    Try connecting to the network from another device. If the problem persists, reset your router.

    Is it possible to recover a Wi-Fi password after reinstalling Windows?

    No, when you reinstall the system, all saved passwords are deleted. In this case:

    • Use reset methods through the router.
    • Check your system backups (if they were created through Windows Backup or Acronis).
    • Contact your provider for a duplicate password (if the router is rented).