How to View a Wi-Fi Password on a Laptop: A Complete Guide

Many users are familiar with the situation of needing to connect a new device to their home network but hopelessly forgetting the access key. Fortunately, if at least one laptop is already successfully connected to the wireless network, restoring access is easy. The Windows operating system stores this data securely, but provides several legal methods for retrieving it.

You can recover a forgotten key using both standard interface tools and the command line, which is especially useful if the graphical interface is not working correctly. It is important to understandPlease note that to perform most of the described actions, you will need administrator rights on the device. Without the appropriate permissions, the system will not allow you to view saved network keys for security reasons.

In this article, we'll cover all the current methods for restoring access, from simple mouse clicks to specialized utilities. You'll learn how to quickly find the information you need in the operating system's depths and avoid common mistakes when configuring network equipment.

Using default settings in Windows 10 and 11

The easiest and safest way to find out a forgotten character combination is to use the built-in interface of the operating system. In modern versions Windows 10 And Windows 11 Microsoft has significantly simplified access to network settings. You don't need to be a system administrator to perform these actions; you just need physical access to an already connected device.

The process begins by opening the Network and Sharing Center. To do this, right-click the connection icon in the system tray or use the system search and enter "Network Status." In the window that opens, select Network and Sharing CenterThis displays your active connection, usually labeled "Wireless Network" with the name of your router.

Next, you need to go to the wireless connection properties. In the network status window, click the button Wireless network propertiesA new dialog box will open where you are interested in the tab SecurityThis is where the main encryption parameters and access key are stored.

By default, the "Network Security Key" field is hidden behind asterisks. To see the real password, check the "Show entered characters" box. This will make the hidden text visible, allowing you to copy or rewrite it.

⚠️ Important: If the "Security" tab is missing or the button is grayed out, this may mean you are trying to view guest network settings or you do not have administrator rights. On corporate networks, access to these settings may be blocked by group policies.

The settings interface may differ slightly depending on the operating system build. Windows 11 The path may be through the Settings app -> Network & Internet -> Advanced network settings. However, the classic Control Panel route remains the most universal across all OS versions.

Recovery via Command Prompt (CMD)

For users who prefer a text-based interface or encounter problems with the graphical shell, the command line is an excellent solution. This method not only allows you to view the password for the current network but also list all saved profiles, which is especially convenient when working with multiple connections.

First, you need to run the command prompt as administrator. Click Win + X and select the appropriate item from the menu or find cmd In the search box, right-click and select "Run as administrator." Without this step, the command will return an access error.

The first step in the console is to display a list of all saved Wi-Fi profiles. Enter the command:

netsh wlan show profiles

In the list that appears, find the name of your network. Then use the command to display a specific profile by adding the key key=clear, which instructs the system to show the key in clear text:

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

In the security information section, find the "Key Content" line. The value to the right of the colon is your password. This method works reliably on all versions of Windows, starting with Windows 7.

☑️ Check before entering commands

Completed: 0 / 4

Using the command line gives more detailed information about the encryption type (e.g. WPA2-Personal or WPA3), which can be useful when setting up new devices that require manual selection of a specific security protocol.

Viewing saved networks in PowerShell

An alternative to the classic command line is a more powerful tool - PowerShellThis interface provides advanced capabilities for managing network adapters and connection profiles. Command syntax may differ, but the principle of data retrieval remains the same.

Launch PowerShell with administrator privileges. To list all profiles, use the following command:

netsh wlan show profiles

While basic netsh commands work here, PowerShell allows you to use scripts for automation. For example, you can create a script that outputs all passwords to a separate text file. This is useful for system administrators managing multiple computers.

One of PowerShell's unique features is its ability to work with objects. You can filter a command's output to include only a string containing a key using the Select-String operator, although this may be overkill for a one-time procedure.

⚠️ Warning: When copying commands from online sources, ensure they don't contain hidden characters or incorrect quotation marks. PowerShell uses "smart" quotes, which may differ from standard ASCII characters, causing a runtime error.

Secret Command to Export All XML Profiles

You can export all profiles to XML files using the command netsh wlan export profile folder="C:\path" key=clear. The resulting XML files will store the password in the tag in plain text. This is convenient for backing up settings.

The PowerShell method is especially useful if the standard Windows console doesn't work correctly or if you need to implement password verification in a more complex automated workstation setup scenario.

Using third-party programs

If Windows' built-in tools seem too complex or inconvenient, there are specialized utilities designed for managing wireless connections. These programs often have a more user-friendly interface and additional features, such as signal analysis or airwave scanning.

One of the most popular and time-tested programs is WirelessKeyView from NirSoft. This portable utility, requiring no installation, instantly displays all keys stored on the system. It displays the network name (SSID), security type, and the key itself in hexadecimal and ASCII formats.

Another option is WiFi Password DecoderThis tool also allows you to quickly decode saved passwords. However, caution should be exercised when using third-party software.

  • 📥 Download programs only from official developer websites to avoid viruses.
  • 🛡️ Antivirus software may react to utilities such as "RiskWare" because they access sensitive data.
  • 🔒 Don't use unknown programs to "hack" other people's networks—it's illegal.

Most of these programs work by reading the Windows registry or using system APIs to extract saved credentials. They don't hack the network, but merely reveal what your computer already knows.

Using third-party software is justified when you need to quickly access data on someone else's computer (with the owner's permission) or when standard Windows tools are blocked by the organization's security policies.

Viewing the password through the router's web interface

If your laptop isn't connected to the network or you need to find out the password for initial setup, you can access the router directly, the source of the signal. This requires access to the device's web interface, which is usually accessible via its IP address.

The standard login addresses are most often 192.168.0.1 or 192.168.1.1Enter this address in your browser's address bar. You'll need your router administrator login and password to log in. If you haven't changed them, they're located on a sticker on the bottom of the device (often this is admin/admin).

After logging into the control panel (interfaces TP-Link, Asus, D-Link (These may differ visually.) You need to find the section related to the wireless network. It may be called "Wireless," "Wi-Fi," "Wireless Mode," or "WLAN." Within this section, look for the "Security" subsection.

The "Wireless Password" (PSK) field will display the current key. You can also change it to a more complex one here. Be sure to save your changes by clicking "Save" or "Apply."

Router brand Typical address Menu section Password field
TP-Link 192.168.0.1 Wireless -> Wireless Security Wireless Password
Asus 192.168.1.1 Wireless Network -> General Authentication method
D-Link 192.168.0.1 Wi-Fi -> Security Settings PSK encryption key
Tenda 192.168.0.1 Wireless Settings Wireless Password
📊 What kind of router do you have at home?
TP-Link
Asus
D-Link
Keenetic
Another

Be prepared to reconnect smartphones, TVs and tablets.

Possible problems and solutions

Users may encounter various technical issues during the password recovery process. Understanding the nature of these errors will help you quickly resolve the issues and regain network access without unnecessary stress.

One common issue is the message "Windows cannot save your network settings" or the absence of a security tab. This often occurs if the network profile is marked as public instead of private. You can change the network type in the Wi-Fi settings, but this isn't always critical for viewing the password if you have administrator rights.

Another common issue is console commands not working. Make sure you're entering the profile name accurately, including capitalization and spaces. If the network name contains spaces, it must be enclosed in quotation marks.

  • 🔄 Try restarting the network adapter through the Device Manager.
  • 🧹 Delete the old network profile and reconnect if the data is corrupted.
  • 🔑 Make sure your router doesn't have MAC address filtering enabled, which is blocking new login attempts.

⚠️ Caution: If your router is leased from your ISP, do not attempt to reset it to factory settings without permission. This may reset the PPPoE or VPN settings required for internet access, making it difficult to restore without professional assistance.

If none of the software methods help, the problem may lie with the network adapter drivers or a physical hardware issue. In this case, it's worth checking the laptop manufacturer's website for up-to-date drivers.

FAQ: Frequently Asked Questions

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

No, this can't be done using Windows software. A computer doesn't store keys for networks it hasn't connected to. The only option is to look at the password on the router's sticker or ask the owner through the device's web interface.

Will the password be visible if the network is hidden (SSID is hidden)?

Yes, if the laptop has previously connected to a hidden network, the profile is saved in the system. The network name may be displayed in the command line, but to view the key, you need to know the exact profile name entered when creating the connection.

Do these methods work on Mac OS?

The methods described (CMD, PowerShell) only work on Windows. On Mac OS, the password can be found using the Keychain Access app by finding the network name in the list and checking the "Show password" box.

What should I do if I forgot my router admin password?

If the default admin/admin passwords aren't working, and you've changed them and forgotten, the only solution is to completely reset the router using the Reset button. This will restore the device to factory settings, and the password will match the one on the sticker, but you'll have to set up your internet connection again.

Is it safe to save a password in Windows?

Yes, Windows encrypts stored passwords. However, if an attacker with administrator rights gains access to your computer, they can extract these keys. For typical home security, this is an acceptable risk.