How to find the WiFi password on a connected laptop

It's quite common to need to connect a new gadget to your home network but forget the password and can't remember it. Fortunately, if your laptop is already connected to the wireless network, the operating system has saved the necessary data in its storage. You don't need to be a hacker or have access to the router's administrative panel to retrieve this information.

There are several proven ways to access your security key using standard Windows tools. We'll cover methods that work on current versions of the operating system, including Windows 10 and 11, without requiring third-party software.

Before adjusting system settings, make sure your laptop is in a strong signal range and your wireless network is active. This is critical, as some settings may be inaccessible without a current connection.

Using the Windows graphical interface

The easiest and safest way for most users is to use the standard network management window. Operating system interface allows you to store passwords hidden, but provides a convenient mechanism for viewing them upon request of an authorized user.

First, open the Network and Sharing Center. Right-click the Wi-Fi icon in the lower-right corner of the screen (in the notification area) and select "Network and Internet settings." In the window that opens, find the "Network and Sharing Center" link, or simply click the name of your active network.

After opening the wireless network status window, you'll need to click the "Wireless Network Properties" button. Once there, select the "Security" tab. This is where you'll find the "Network Security Key" field, which is hidden by asterisks by default. Check the "Show entered characters" box to view the password.

⚠️ Note: Displaying your password through the graphical interface may require administrator privileges. If prompted, enter your Windows account password.

This method is most convenient if you need to quickly find the code for a single device. However, if you're used to using the console or the graphical interface isn't working correctly, there are alternatives.

Getting a password via the command line

For more advanced users or in cases where a graphical interface is not available, the command line is ideal. CMDThis tool allows you to interact directly with your Windows network profile, extracting all stored information from it.

Run the command prompt as administrator. This is required, as prompting for passwords is a system operation that requires elevated privileges. Enter cmd In the Start menu search, right-click on Command Prompt and select Run as administrator.

The first step is to get the exact name of the network profile. Enter the command netsh wlan show profiles and press Enter. In the "User Profiles" list, find the name of your network. Next, use the command to display the details of a specific profile by adding the parameter key=clear.

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

In the command output, find the "Security Parameters" section. The "Key Contents" line will contain the password you're looking for in cleartext. This method is especially useful for copying the password, as it can be easily selected with the mouse in the console window.

☑️ Check before entering a command

Completed: 0 / 4

PowerShell script for automation

Modern shell PowerShell offers more flexible options for managing network configurations. Although the team netsh works here too, PowerShell allows you to use more complex logical chains to extract data.

Open PowerShell as administrator. You can use the same utility to get the password. netsh, but the output will be formatted differently. Enter the command: (netsh wlan show profile name="Network_Name" key=clear | Select-String"Key content")The system will return a string containing the password.

If you frequently work with network settings, PowerShell allows you to create your own scripts. However, for a one-time procedure, a single line of code is sufficient. PowerShell's advantage is its ability to filter output and manipulate objects if you need to process multiple profiles at once.

⚠️ Note: When copying commands from this article, pay attention to the quotation marks. They may differ in different keyboard layouts ("" instead of ""), which will cause a syntax error.

Using PowerShell is useful for system administrators who need to quickly access keys on multiple computers or create an automated report on stored networks.

Alternative method via registry

Theoretically, passwords are stored in the Windows registry at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles, but the data there is encrypted and unreadable without specialized tools. Using the command line is the only legal way to decrypt them on the fly using OS tools.

Comparison of password extraction methods

The choice of method depends on your skills and the current situation. The graphical interface is intuitive for beginners, but requires more clicks. The command line is faster for experienced users. Below is a table to help you choose the right tool.

Method Complexity Admin rights required Speed
Wi-Fi Properties Low Yes (often) Average
Command line Average Yes High
PowerShell High Yes High
Third-party software Low Yes Low (installation)

As the table shows, standard Windows tools provide sufficient functionality without the need to download additional software. Using third-party utilities can pose security risks if they are obtained from untrusted sources.

For a one-time procedure, the "Properties" method in the graphical interface is best. However, if you need to share the password remotely by copying it from the console, the command line is more efficient.

Restoring access via a router

If none of the methods work on your laptop (for example, if the network profile was deleted or corrupted), the only option is to access the router's settings. To do this, your laptop must be connected to the router via any method—either cable or Wi-Fi (even without internet access).

Open your browser and enter your router's IP address into the address bar. This is most often 192.168.0.1 or 192.168.1.1The exact address, as well as the login and password, are usually found on a sticker on the bottom of the device. If you've changed this information before and forgot it, you may need to reset the router to factory settings.

After logging in, find the section related to wireless network. It may be called Wireless, Wi-Fi, Wireless mode or WLANThe current password (PSK Key) will be displayed in the "Security" or "Basic Settings" subsections.

⚠️ Note: Router interfaces vary significantly between different manufacturers (TP-Link, ASUS, D-Link, Keenetic). Look for tabs labeled "Security," "Wireless," or with an antenna icon.

This method is universal and allows you not only to find out the password, but also to change it to a more complex one if you suspect that your neighbors have connected to your network.

📊 Which password recovery method do you find most convenient?
Through the network properties in Windows
Via the command line
Through the router login
Using the provider's mobile app

Common mistakes and their solutions

Users often encounter common problems when recovering their passwords. Understanding the causes of these errors can save time and avoid unnecessary steps.

One common mistake is trying to view the password for a network the laptop isn't currently connected to and whose profile has been deleted. Windows doesn't store passwords "in the cloud" for every network it's ever seen without your explicit permission. If the profile has been deleted, only logging into the router will help.

Another issue is the lack of administrator rights. Without them, the system blocks access to security data. Make sure you're running under an account with full privileges.

It's also worth considering that antivirus software or corporate security policies may block access to network settings. If you're using a work laptop, contact your system administrator.

Wireless network security measures

Once you've learned or recovered your password, it's time to think about your network security. A weak password leaves an open door for attackers to steal your personal data or use your internet for illegal activities.

Use an encryption protocol WPA2-Personal or WPA3Older WEP and WPA protocols are outdated and easily cracked. Make sure your router settings are configured to use a modern security standard.

Your password should be complex: contain mixed-case letters, numbers, and special characters. It should be at least 12 characters long. Avoid obvious combinations like your date of birth or the sequence "12345678."

Regularly check the list of connected clients on your router. If you see an unfamiliar device, immediately change your Wi-Fi password and update it on all your devices.

FAQ: Frequently Asked Questions

Is it possible to find out the Wi-Fi password if the laptop is not connected to the network?

No, not if the network profile has been deleted from Windows memory. However, if the laptop has ever connected to this network and the profile is saved (even if the network is currently out of range), you can view the password through the command prompt or network properties.

Where can I find my password on macOS?

On a Mac, passwords are stored in Keychain Access. Find Keychain Access in Spotlight, find your network name, open Properties, and check the "Show password" box, confirming the action with biometrics or your account password.

Are password recovery programs safe to use?

Using third-party software carries risks. Many "hacks" contain viruses or miners. Standard Windows tools (cmd, powershell, settings) are safe and don't require additional software.

What should I do if I forgot my router password to access the settings?

If the default password on the sticker doesn't work, it's likely changed. In this case, the only solution is to reset the router to factory settings (press the Reset button on the router), after which you'll need to reconfigure the internet.