How to Restore a Forgotten Wi-Fi Network on a Laptop

Forgetting your wireless network password is a frighteningly common occurrence, especially if your laptop connected to the router automatically many months ago. You sit down to work and suddenly discover that Internet connection missing, and a new device or smartphone simply can't log in. At this point, it seems impossible to solve the problem without access to the router's web interface or help from your provider, but this is not the case.

Fortunately, Windows and macOS operating systems store access keys to previously used access points in their system registries. Even if you've never written down the combination, it's safely hidden in the depths of the file system. Restoring access takes just a few minutes if you know which menus to open and which commands to execute.

In this article, we'll examine all possible methods for retrieving a saved password, from the built-in interface tools to the command line. We'll also discuss situations where a network has been forcibly "forgotten" by the system and needs to be re-added from scratch.

Finding a password in Windows 10 and 11 settings

The easiest and most secure way to find the key for the network your laptop is currently connected to, or has previously connected to, is in the standard system settings menu. Microsoft has provided a convenient mechanism for viewing the active connection properties, where the hidden password can be easily revealed. To do this, you'll need to open the Network control panel, which is located deep within the classic settings, not in the new Settings menu.

First press the key combination Win + R and enter the command ncpa.cplto instantly open the network connections window. Find your adapter. Wi-Fi, right-click it, and select "Status." In the window that opens, click "Wireless Network Properties," go to the "Security" tab, and check the box next to "Show characters as you type."

⚠️ Attention: If the "Show characters as you type" option is grayed out, it means your current account doesn't have administrator privileges. You'll need to log out and log in with an account with full privileges, or ask an administrator to perform this step.

Once the mask is removed, the desired character combination will appear in the "Network Security Key" field. Copy it carefully, observing the letter case, as the password is sensitive to character size. This method works reliably on all modern versions of Windows, including the 2026-2026 Update, but the interface may differ slightly depending on the OS build.

Using the Command Prompt for Advanced Users

For those who prefer speed and accuracy, or if the graphical interface isn't working correctly, using the console is a great solution. The Windows command line allows you to interact directly with the system's WLAN profile, extracting all technical information, including encryption keys. This method is especially useful if you want to find out the password for a network your laptop has connected to in the past but is now out of range.

Run Command Prompt as Administrator by typing cmd in the search and selecting the appropriate option. The first step is to get a list of all saved profiles. Enter the command:

netsh wlan show profiles

Find the exact name of yours in the list. access points. Next, use the command to display the details of a specific profile by adding the parameter key=clear, which tells the system to show the key in clear text:

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

In the command output, find the line "Key Content." This is where your password will be. This method is universal and works even when the graphical interface freezes or doesn't display the required fields due to driver errors.

What to do if the command returns an error?

If the system reports that the profile was not found, check the spelling of the network name. The name must match exactly, including spaces and special characters. Also, make sure the profile is actually saved in the system.

Restoring access on macOS

Users of technology Apple Face similar problems, but they are solved through the iCloud keychain ecosystem and Keychain. If your Mac has ever connected to a lost network, the password is likely stored in the system's secure storage. In recent versions of macOS, the process has become even more intuitive thanks to integration with the Keychain app.

Open Keychain Access via Spotlight (by clicking Command + Space (and entering the program name). In the list on the left, select the "Passwords" category, then enter the name of your wireless network in the search box. Double-clicking on the found item will open the properties window, where you should check the "Show password" box.

The system will ask you to confirm the action by entering your macOS account password or using Touch ID. After successful authentication, the code you're looking for will appear in the field. It's important to note that if you have iCloud sync enabled, this password will also be available on your other devices. Apple, linked to the same ID.

  • 🔑 Open Keychain Access via Finder or Spotlight.
  • 🔍 Find the name of your Wi-Fi network in the list.
  • 👁️ Check the box "Show password".
  • 🆔 Enter your administrator password or use Touch ID.
📊 What operating system is installed on your laptop?
Windows 10
Windows 11
macOS
Linux
Other

What to do if a network is removed from the list of known networks

Sometimes the problem isn't that you forgot the password, but that the system itself has "forgotten" the network. This can happen after updating drivers, resetting network settings, or manually deleting a profile. In this case, the laptop sees the network but refuses to connect, requiring you to re-enter the password, which you don't have on hand.

In this situation, if you don't have another device with internet access to log into the router, you can try using the function WPS (Wi-Fi Protected Setup), if supported by your router and laptop. This allows you to connect without entering a password by physically pressing a button on the router.

Find the button on the router body labeled as WPS or the two arrows icon. Click it. Then, on your laptop, select your network from the list of available networks. Windows may automatically prompt you to connect via WPS, or you may need to enter a PIN, which is often found on a sticker on the bottom of the router (different from the Wi-Fi password).

⚠️ Attention: The WPS protocol is considered less secure than WPA2/WPA3 and is disabled by default on many modern routers. If the button doesn't work, check the instructions for your router model—you may need to enable the feature through the web interface.

If WPS isn't available, your only option is to physically access the router and reset it to factory settings. This is a last resort, as it will erase all provider settings, requiring you to set up your internet connection again.

☑️ Checklist before resetting your router

Completed: 0 / 4

Comparison of access recovery methods

The choice of recovery method depends on your current situation: whether you're currently connected to the network, whether you have administrator rights, and what operating system you're using. Below is a table to help you quickly navigate the available options and their effectiveness.

Method Necessary rights Complexity Efficiency
Network Properties (GUI) User Low High (if connected)
Command Prompt (CMD) Administrator Average Maximum
Keychain Access (macOS) ID owner Low High
WPS button Physical access Low Depends on the router

As the table shows, the command line is the most powerful tool, as it allows you to retrieve passwords even for networks you're not currently connected to, provided the profile is saved in the system. However, for beginners, the graphical interface remains the easiest option.

It's important to understand that no software method will help if the laptop has never connected to this network before and hasn't saved its settings. In this case, the password can only be obtained through the router or by asking other users.

Common errors and how to fix them

When recovering a password, users often encounter technical issues that block access to information. One of the most common issues is time desynchronization or driver conflicts that prevent the system from correctly displaying network properties.

If the Security tab is empty or the buttons are grayed out, try updating your wireless adapter driver. Go to device Manager, find your Wi-Fi adapter, right-click it, and select "Uninstall device," then restart your laptop. The system will automatically install the standard driver, which often resolves the issue of accessing the settings.

Another common mistake is copying characters incorrectly. When copying a password from the command line or network properties, it's easy to pick up an extra space at the beginning or end of a line. When entering a password on a new device, carefully ensure the cursor is positioned flush with the first and last characters.

⚠️ Attention: Operating system and router interfaces are subject to update. Button locations and menu item names may change in new versions of Windows or macOS. If you can't find the item you're looking for, try searching in your system settings.

FAQ: Frequently Asked Questions

Is it possible to find out the Wi-Fi password if the laptop has never connected to this network?

No, it's impossible to find the password using operating system software if the network profile has never been created on the device. The password is stored only at the time of connection. The only option is to access the router itself (via cable or reset) or obtain the password from the owner.

Is it safe to use third-party password recovery programs?

Using third-party software carries risks. Many free utilities can contain adware or viruses. The built-in Windows tools (CMD, PowerShell) and macOS are completely safe and sufficient for the task without installing additional software.

What should I do if the netsh command returns the error "Requested value not found"?

This error means that there is no profile with the specified name saved on the system. Check the exact network name with the command netsh wlan show profilesThe network may have been removed from the list of known networks, or you may have misspelled the name (case is important).

Is it possible to recover the password if I forgot the Windows administrator account?

Without administrator rights, you can't view saved passwords in the system. This is a security measure. You'll need to either remember your administrator password or use another device that's already connected to the network to view the password there.