How to Find the Password of Connected Wi-Fi on Windows PC

Discovering the password of the wireless network your computer is connected to is one of the most common needs in home and corporate IT support. Very often, we configure a device only once and end up forgetting the security key characters over time. To find the password of the Wi-Fi network your Windows PC is currently connected to, you need to open the Control Panel, navigate to the Network and Sharing Center, click on your active Wi-Fi network connection, open Wireless Properties, go to the Security tab, and check the Show characters box, or run the command "netsh wlan show profile name='YOUR-SSID' key=clear" in an elevated Command Prompt.
This need arises when we must connect new devices to the local network, such as smartphones, tablets, smart TVs, or when we host guests at home or in the office. The Windows platform locally stores all the wireless network profiles you have previously connected to. These profiles contain not only the SSID (network name) but also the authentication credentials, the type of encryption used, and the automatic connection settings. In this practical and technical guide designed by DomineTec, we detail all the possible methods to reveal this stored password, ranging from the traditional graphical interface to robust command lines and automated administrative scripts.
1. The Graphical Interface: Step-by-Step via Control Panel on Windows
The most traditional and accessible method for the majority of computer users involves using the standard graphical interface of the operating system. Although recent versions of Windows 10 and Windows 11 prioritize the modern Settings application, the classic Control Panel remains the most direct administrative tool to access the physical properties of your network adapter.
Follow these steps carefully to find the key through the graphical interface:
- Open the Run dialog box: Press the
Windows + Rkeys simultaneously on your keyboard to open the small command box. - Access Network Connections: Type the command
ncpa.cpland press Enter. This will open the Network Connections window directly, bypassing unnecessary menus. - Locate the wireless adapter: Identify the icon of your active Wi-Fi network adapter (usually labeled as "Wi-Fi" or "Wireless Network Connection").
- Open the Status window: Double-click the active Wi-Fi icon with your left mouse button to open the connection status interface.
- Access Wireless Properties: In this window, locate and click the central button named "Wireless Properties".
- Navigate to the Security tab: In the new window that opens, you will see two tabs at the top: Connection and Security. Click on the Security tab.
- Reveal the password: Under the "Network security key" field, check the checkbox labeled "Show characters". Windows will instantly display the password in plain text.
2. Using Command Prompt (CMD): Fast and Free of Extra Clicks
If you prefer the efficiency and speed of the Windows command-line terminal, or if you are performing remote technical support where using a mouse is slow and unresponsive, the Command Prompt (CMD) is the best alternative. The Windows operating system contains a built-in administrative tool called Netsh (Network Shell) that allows you to view and modify local network configurations.
To read the wireless network password with just a single line of command, perform the following procedure:
- Click on the Windows Start menu and type CMD in the search bar.
- Right-click on the Command Prompt icon and choose the option Run as Administrator.
- Once the terminal opens, type the following command to list all Wi-Fi profiles saved on the computer:
netsh wlan show profiles. Press Enter to view the network names. - A list of all wireless networks previously connected on your PC will be displayed. Identify the exact SSID (name) of your current network.
- Now, run the revelation command, replacing the term in quotes with the actual name of your network:
netsh wlan show profile name="YourNetworkName" key=clear. - Press Enter and look for the section named Security settings. The password will be visible in the line labeled Key Content.
3. Finding the Wi-Fi Password via Windows PowerShell
For corporate network administrators managing multiple servers and client workstations, PowerShell is the standard administrative scripting tool for Windows. With it, you can create scripts to fetch wireless security keys in batches or analyze detailed network security configurations across multiple devices.
To extract the password using PowerShell, open the console as administrator and type the following automation command:
(netsh wlan show profiles) | Select-String "\:(.+)$" | ForEach-Object { $name = $_.Matches.Groups[1].Value.Trim(); $_ } | ForEach-Object { $pass = (netsh wlan show profiles name="$name" key=clear) | Select-String "Key Content|Conteúdo da chave"; [PSCustomObject]@{ SSID = $name; Password = ($pass -split ":")[1].Trim() } }
This short script traverses all the configuration files stored in the system partition, retrieves the name of each registered wireless access point, and performs the automatic extraction of the corresponding security keys. The result is displayed in an organized table directly in the PowerShell console, saving troubleshooting time on local network infrastructure.
4. Understanding the Profile Storage Structure in Windows
From the perspective of the Microsoft operating system's internal architecture, Wi-Fi network credentials are not simply floating in RAM or saved in standard TXT files. Windows utilizes the WLAN AutoConfig service (also known as WlanSvc) to manage all wireless communication interfaces and associated profiles.
Each time you type a password and connect to a network for the first time, Windows creates a unique XML file for that specific profile. These files are protected by the Windows encryption system and are stored in the following protected directory on your system partition:
C:\ProgramData\Microsoft\WlanSvc\Profiles\Interfaces\
Within this directory, there are folders with names composed of long hexadecimal codes (GUIDs) that identify each physical network card installed on the computer. Inside each of these subfolders, you will find the XML files corresponding to the known wireless networks. These files contain structured information such as the default encryption standard (WEP, WPA2-Personal, WPA3), the authentication type (AES or TKIP), and the security key material encrypted using the Windows DPAPI system, which prevents third-party software without administrative privileges from reading the data directly from the storage unit.
5. Comparative Table of Methods to Find the Password
To help you decide which method to use depending on your technical knowledge level and administrative permissions in the Windows operating system, we have designed the table below comparing each detailed approach:
| Method Used | Required Interface | Requires Admin | Advantages and Limitations |
|---|---|---|---|
| Control Panel | Graphical Interface (GUI) | Yes (for UAC prompt) | Highly visual and simple for basic users, but only reveals the password of the active connection. |
| Command Prompt (CMD) | Command Line (CLI) | No (for user profiles) | Extremely fast, no mouse needed, reveals older passwords of networks you are not currently connected to. |
| PowerShell Script | Scripting Shell (CLI) | Yes (Mandatory) | Allows you to extract all passwords at once in an organized and structured output table. |
| Router Access | Web Browser Panel | Yes (Admin Login) | Reveals the password directly at the transmitter source, ideal if the computer was never connected. |
6. How to Find the Wi-Fi Password via the Router Configuration Panel
If your computer has never connected to the wireless network before, or if you have just reset your network settings and do not have any XML profiles saved in the Windows operating system, the previous methods will not work. In this specific technical scenario, the best alternative is to consult the security key directly within the internal configuration of your home router.
To do this, you will need to connect your PC to the router using a traditional RJ45 ethernet network cable. With the wired connection active, open the web browser of your choice (such as Google Chrome, Microsoft Edge, or Mozilla Firefox) and insert the router default gateway IP address into the address bar (the most common IPs are 192.168.0.1, 192.168.1.1, or 192.168.15.1). Press Enter to access the router authentication screen.
On the login screen, enter the administrative credentials of the device. If you have never modified this information, it can be found on a sticker affixed to the bottom of the physical router, usually containing the username "admin" and a factory password. After logging in, navigate through the internal setup menus until you locate the wireless settings, frequently labeled as "Wireless Settings", "Wi-Fi Configuration", or "Wi-Fi Security". In this menu, you will see the active encryption key (WPA2/WPA3) listed clearly, allowing you to copy it or modify it if necessary to connect other devices immediately.
7. Security Best Practices for Wi-Fi Passwords
Keeping the password of your wireless network secure is fundamental to protect the integrity of all your connected devices in home or enterprise environments. Revealing passwords on the computer shows how exposed these credentials can be if a third party gains physical access to your unlocked computer. Therefore, adopting digital security best practices is essential.
First, avoid using short, obvious passwords or those that utilize easily guessable personal data, such as birth dates, family names, numerical sequences (like 123456), or the name of the network owner. A strong password should consist of a random combination of uppercase and lowercase letters, numbers, and special characters (like @, #, $, %, &). Additionally, give preference to modern encryption protocols on your router. Currently, the WPA3 protocol is the most secure, offering superior protection against offline brute force attacks compared to WPA2.
Another recommended practice is to enable a separate Wi-Fi network for visitors, often called a "Guest Network". This isolates visitor traffic and prevents them from accessing your main local network, where shared files, printers, and other computers are located. Finally, remember to change your Wi-Fi password periodically, preferably every six months, to revoke access to old devices or people who no longer frequent the location.
8. Troubleshooting Measures on Wireless Connections
Support Tip: If after finding and entering the correct password you are still unable to establish a wireless connection on your Windows PC, a DHCP cache failure or wireless adapter driver corruption might be occurring. In this case, the ideal solution is to open Command Prompt as an administrator and execute the commands ipconfig /release followed by ipconfig /renew to reset IP configurations, or uninstall and reinstall the wireless network adapter in Device Manager to restore original system files.
Wireless network setup plays an incredibly important role in any modern digital infrastructure setup. Understanding how the operating system handles encryption keys helps us prevent potential security leaks and unauthorized entry. To guarantee that only authorized individuals utilize the local network, we should implement strict security controls and audit saved passwords frequently. Many home routers are configured with default passwords that can be easily cracked by malicious actors in the vicinity. Changing the default name of the wireless network is also a recommended practice to avoid exposing the brand of your router. If an attacker knows the manufacturer of your wireless router, they can attempt to exploit vulnerabilities specific to that device. The security of Windows computers can be enhanced if we disable automatic connection to public or open Wi-Fi networks. Public wireless networks in airports and hotels are often easy targets for man-in-the-middle attacks. In these attacks, the intruder intercepts all traffic passing through your PC, including typed passwords and confidential bank details. Using a trusted VPN is mandatory when accessing wireless networks that do not require a security password. Data encryption in wireless traffic has evolved significantly since the introduction of the WEP standard in the late nineties. The WEP standard proved to be extremely weak and was quickly cracked by security researchers in just a few minutes. Subsequently, the WPA standard was developed as a temporary security solution until the robust WPA2 was standardized. The WPA2 protocol uses advanced AES encryption and remains the most widely adopted security standard worldwide today. However, even the WPA2 protocol has known vulnerabilities, such as the KRACK attack that affects the initial connection handshake. To resolve the security gaps of WPA2, the Wi-Fi Alliance recently introduced the WPA3 security protocol.
Frequently Asked Questions
Is it possible to find the Wi-Fi password in Windows without administrator privileges?
Yes. Not strictly. A standard user can read the security key of wireless network profiles saved under their own session. However, administrative authorization is requested to view global domain credentials or when modifying key system parameters.
Does the key=clear command work on all versions of Windows?
The netsh wlan show profile command with the key=clear parameter is a native feature of the Network Shell present in Windows 7, Windows 8, Windows 10, and Windows 11. Yes. This commands interface is a legacy feature maintained from older Windows versions, providing consistent and fast network diagnostics on modern systems like Windows 10 and 11.
Why is the Wi-Fi password hidden by asterisks in the properties?
This happens for operating system security reasons. This masking is a simple physical privacy safeguard. Users can quickly unmask the key by navigating to the network adapter properties and marking the checkbox on the security parameters window.
Where are Wi-Fi passwords saved in the Windows registry?
Unlike other settings, wireless network passwords are not saved directly in the Windows Registry. These details are kept within localized XML configuration files under the WlanSvc directory. The system retrieves and decodes these profiles securely during boot configurations.




