
How to See Wifi Password on Pc? Run Netsh Command
Introduction Forgetting a WiFi password is a common frustration, especially when a friend visits, you set up a new phone, or you need to reconnect a smart home device. If your Windows computer has ever joined that wireless network, the password is saved on you
Introduction
Forgetting a WiFi password is a common frustration, especially when a friend visits, you set up a new phone, or you need to reconnect a smart home device. If your Windows computer has ever joined that wireless network, the password is saved on your machine. You do not need to download sketchy software or pay for a password recovery tool to get it back.
Windows includes a built-in networking utility called Netsh, short for Network Shell. With a few commands, you can list every wireless profile stored on your PC and reveal the security key for any of them. This article walks you through exactly How to See Wifi Password on Pc? using the Netsh command, explains how to read the output, covers alternative methods, and shares security tips so you can recover your password safely.
Whether you are using Windows 10, Windows 11, or an older version of Windows, the process is largely the same. You only need administrator access to the computer and a network that your PC has connected to at least once.
- What Is the Netsh Command?
- Prerequisites Before You Begin
- How to See Wifi Password on Pc? Using Netsh WLAN Show Profiles
- Opening Command Prompt with Administrator Rights
- Listing All Saved Wireless Profiles
- Step-by-Step: Reveal the WiFi Password with Netsh
- Understanding the Netsh Command Output
- Alternative Methods to See WiFi Password on PC
- Comparison Table: Netsh vs Other Methods
- Troubleshooting Common Netsh Issues
- Security and Privacy Best Practices
- Tips for Managing WiFi Passwords on Windows
- Frequently Asked Questions
- Conclusion
What Is the Netsh Command?
Netsh is a command-line scripting utility that has been part of Windows for many years. It stands for Network Shell, and it allows administrators and advanced users to configure and display network settings without opening a graphical control panel. From managing firewall rules to configuring IP addresses, Netsh can handle a wide range of networking tasks.
For wireless networks, Netsh includes a WLAN context. This context lets you view saved WiFi profiles, connect to networks, disconnect, and—most importantly for this guide—display stored security keys. Because the password information is sensitive, Windows requires administrator privileges to reveal it in plain text.
The best part about Netsh is that it is already installed on your computer. You do not need to download anything, and you do not need to worry about malware that often comes bundled with free WiFi password finder tools. If you are asking How to See Wifi Password on Pc? without installing third-party software, Netsh is the safest native option.
Prerequisites Before You Begin
Before you run any Netsh commands, make sure the following conditions are met:
- Your PC is running Windows. Windows 7, 8, 10, and 11 all support Netsh.
- The computer has connected to the target WiFi network at least once in the past. Netsh can only reveal passwords for saved profiles.
- You have administrator rights on the local computer. Standard user accounts cannot view the security key in clear text.
- You know the exact name of the wireless network, also called the SSID. If you are unsure, Netsh can help you list all saved profiles first.
If you meet these conditions, you are ready to proceed. Missing any one of these prerequisites can cause the command to fail or return an empty result.
How to See Wifi Password on Pc? Using Netsh WLAN Show Profiles
The first step in answering How to See Wifi Password on Pc? is to find out which wireless networks your computer remembers. Windows stores each network as a profile, and Netsh can list them all with a single command. You do not need to know the password beforehand; you only need to know that your PC has connected to the network previously.
Opening Command Prompt with Administrator Rights
To run Netsh commands that reveal passwords, you must open Command Prompt as an administrator. Click the Start button, type “cmd” or “Command Prompt,” right-click the result, and choose “Run as administrator.” If Windows asks for permission through a User Account Control dialog, click “Yes.”
Once the black Command Prompt window opens, you are ready to type Netsh commands. You can also use PowerShell, but Command Prompt is the traditional choice for Netsh and works identically for this task.
Listing All Saved Wireless Profiles
Type the following command and press Enter:
netsh wlan show profiles
Windows will display a list under the heading “User profiles.” Each entry shows the name of a wireless network your PC has connected to before. Look through the list and find the network whose password you want to recover. Copy or write down the exact name, including capitalization and spaces, because you will need it for the next command.
Step-by-Step: Reveal the WiFi Password with Netsh
Now that you have the network name, you can reveal the stored password. Follow these steps carefully to avoid errors.
- Open Command Prompt as administrator using the steps described above.
- Run
netsh wlan show profilesto confirm the exact network name. - Type the reveal command using the network name you found. The command structure is:
netsh wlan show profile name="NETWORK_NAME" key=clear
- Replace NETWORK_NAME with your actual SSID, keeping the quotation marks if the name contains spaces.
- Press Enter and wait for Windows to display the profile details.
- Scroll through the output until you reach the “Security settings” section.
- Locate the line labeled “Key Content.” The text next to it is your WiFi password.
- Close Command Prompt when you are finished to keep your system secure.
It is important to use quotation marks around the network name in the command, especially if the SSID contains spaces. For example, if your network is called “Home WiFi,” the command must treat the entire phrase as a single name. Omitting the quotes can cause Netsh to misread the network name and return an error.
Understanding the Netsh Command Output
After you run the reveal command, Windows prints a block of text with several sections. The most important section is “Security settings.” Under that section, look for the following fields:
- Authentication: Tells you the security type, such as WPA2-Personal or WPA3-Personal.
- Cipher: Shows the encryption method, commonly CCMP or GCMP.
- Security key: Indicates whether the network uses a password. It will say “Present” if a key is stored.
- Key Content: This is the actual WiFi password in plain text.
If the “Key Content” line is blank, the network may not have a password, or Windows may not have stored the key in a way that Netsh can display. If you see “The wireless network profile is not found,” double-check that you typed the network name exactly as it appears in the profile list. Network names are case-sensitive, and extra spaces can cause the command to fail.
Alternative Methods to See WiFi Password on PC
Netsh is powerful, but it is not the only way to see a saved WiFi password on Windows. Depending on your comfort level with command-line tools, you might prefer one of the following methods.
The first alternative is the graphical user interface through Network and Sharing Center. You can right-click the network icon in the system tray, open network properties, and view wireless properties. However, the password field is often hidden behind a “Show characters” checkbox, and this method can be buried under several menus in newer versions of Windows. It is also less reliable if you are trying to recover a password for a network you are not currently connected to.
Another option is to log in to your router’s administration page. If you know the router’s admin username and password, you can view the WiFi password under wireless settings. This works even if your PC has never connected to the network, but it requires physical access to the router or access to its admin interface.
Some people turn to third-party WiFi password recovery software. These tools can scan your system and display saved passwords, but they carry security risks. Many free utilities bundle adware or malware, so it is generally safer to stick with built-in Windows tools like Netsh.
Finally, PowerShell can run the same Netsh commands. Since PowerShell is also built into Windows, it is a viable alternative if you prefer that environment. The syntax remains the same, so you can use the exact commands shown in this guide.
Comparison Table: Netsh vs Other Methods
| Method | Difficulty | Speed | Admin Rights Required | Shows Password | Built into Windows |
|---|---|---|---|---|---|
| Netsh command | Moderate | Fast | Yes | Yes | Yes |
| Network and Sharing Center | Easy | Moderate | No | Yes | Yes |
| Router admin page | Moderate | Moderate | No | Yes | No |
| Third-party software | Easy | Fast | Sometimes | Yes | No |
| PowerShell with Netsh | Moderate | Fast | Yes | Yes | Yes |
Troubleshooting Common Netsh Issues
Even with the right steps, things can go wrong. Here are the most common problems and how to fix them.
Access denied: This usually means you did not open Command Prompt as administrator. Close the window and reopen it with elevated privileges.
Profile not found: If Netsh says the wireless network profile is not found, check the spelling of the SSID. Network names are case-sensitive, and extra spaces can cause the command to fail.
Key Content is blank: A blank password field often means the network is open and does not use a password. It can also mean that Windows did not save the security key when you first connected.
Command not recognized: Make sure you typed “netsh” correctly and that you are in Command Prompt or PowerShell. If you are using a restricted shell or a third-party terminal, the command may not work.
No profiles listed: If the profile list is empty, your computer has never saved a WiFi network, or you are looking at the wrong user account. Wireless profiles are stored per user in some cases.
Security and Privacy Best Practices
Recovering a WiFi password is useful, but it also comes with responsibility. Only use Netsh to view passwords for networks you own or have explicit permission to access. Attempting to recover passwords for networks you do not own may violate privacy policies or local laws.
After you reveal a password, avoid writing it down on sticky notes or sending it over unencrypted messaging apps. If you need to share the password with a guest, consider using a guest network on your router instead of giving out your main WiFi password.
Be cautious with any third-party tool that claims to reveal WiFi passwords. Built-in Windows tools like Netsh are much safer because they are signed by Microsoft and do not require you to run unknown executables.
Finally, always close the administrator Command Prompt window when you are done. Leaving an elevated shell open increases the risk that another user or malicious script could run commands with administrative privileges.
Tips for Managing WiFi Passwords on Windows
Beyond recovering a forgotten password, you can manage your saved wireless profiles more effectively with Netsh.
To remove a network you no longer use, run:
netsh wlan delete profile name="NETWORK_NAME"
This helps keep your profile list clean and reduces clutter when you run the show profiles command.
If you want to export all wireless profiles to an XML file for backup, you can use Netsh to save the configuration. This is useful if you are moving to a new computer and want to reconnect to the same networks without re-entering passwords manually.
Consider using a reputable password manager to store your WiFi credentials alongside your other login information. That way, you will not need to rely on command-line tools the next time you forget a password.
Frequently Asked Questions
Can I see the password for a WiFi network I never connected to?
No. Netsh can only reveal passwords for wireless profiles that are already saved on your PC. If your computer has never joined the network, there is no stored password to display.
Does this work on Windows 11?
Yes. The Netsh WLAN commands work on Windows 11, Windows 10, and earlier versions of Windows. The interface may look slightly different, but the command-line process remains the same.
Do I need an internet connection to run Netsh?
No. Netsh reads information stored locally on your computer. You do not need to be connected to the internet or even to the WiFi network in question.
Is Netsh safe to use?
Yes. Netsh is a legitimate Microsoft utility built into Windows. It is far safer than downloading unknown password-recovery software from the internet.
What if the Key Content field is empty?
An empty Key Content field usually means the network does not use a password, or Windows did not store the security key when you connected. You may need to check the router settings instead.
Can I use this method on a work or school computer?
Only if you have administrator rights and permission to do so. Many organizations restrict access to Command Prompt and Netsh for security reasons.
Conclusion
You now know exactly How to See Wifi Password on Pc? using the Netsh command. The process is straightforward: open Command Prompt as administrator, list your saved wireless profiles, and run the reveal command with the network name and the key=clear switch. Within seconds, you can view the stored password under the Key Content field.
Remember to use this knowledge responsibly. Only recover passwords for networks you own or are authorized to access, and avoid third-party tools that could put your computer at risk. With Netsh, you have a safe, built-in way to manage your wireless credentials whenever you need them.