
How to See Wifi Password on Windows? Run Netsh Command
Introduction Forgetting a Wi-Fi password is something that happens to almost everyone. You set it up once, your devices connect automatically, and months or years later you need to share it with a guest or connect a new device — and you realize you have no ide
Introduction
Forgetting a Wi-Fi password is something that happens to almost everyone. You set it up once, your devices connect automatically, and months or years later you need to share it with a guest or connect a new device — and you realize you have no idea what it is. If you have ever asked yourself “How to See Wifi Password on Windows?”, you are in the right place. Windows stores every Wi-Fi network you have ever connected to, along with its password, right inside your operating system. You do not need third-party software, you do not need to reset your router, and you do not need to call your internet provider. With a single command-line tool called netsh, you can reveal any saved Wi-Fi password in seconds.
This guide walks you through every method available on Windows 10 and Windows 11, explains the netsh command in detail, and also covers graphical alternatives for users who prefer not to use the command prompt. By the end, you will know exactly How to See Wifi Password on Windows? using multiple reliable techniques, and you will understand how to keep those credentials safe once you recover them.
Table of Contents
- Introduction
- What Is the Netsh Command?
- Why You Might Need to Recover a Wi-Fi Password
- Requirements Before You Start
- Method 1: How to See Wifi Password on Windows? Using Netsh Command
- Method 2: Using Windows Settings (Graphical Method)
- Method 3: Using Control Panel Network Settings
- Method 4: Using PowerShell
- How to See All Saved Wi-Fi Passwords at Once
- Comparison of Methods
- Troubleshooting Common Issues
- Security and Privacy Considerations
- Tips and Best Practices
- Frequently Asked Questions
- Conclusion
What Is the Netsh Command?
Netsh, short for “Network Shell,” is a command-line utility built into Windows. It has existed since Windows 2000 and remains one of the most powerful networking tools in the operating system. Netsh allows administrators and advanced users to view, configure, and troubleshoot network components such as interfaces, protocols, firewall rules, and wireless profiles.
When it comes to Wi-Fi, netsh stores a complete profile for every network you connect to. That profile includes the SSID (network name), authentication type, encryption method, and — crucially — the security key (password) in plain text. The reason Windows keeps the password is so it can automatically reconnect without asking you each time. By querying these stored profiles with netsh, you can extract the password whenever you need it.
The command you will use most often is netsh wlan show profile name="YourNetwork" key=clear. The key=clear parameter is what tells Windows to display the password instead of hiding it. Without that parameter, Windows will only show the profile details but mask the key.
Why You Might Need to Recover a Wi-Fi Password
There are many legitimate reasons you might need to retrieve a saved Wi-Fi password on Windows. Understanding these scenarios helps you appreciate why this feature exists and why knowing How to See Wifi Password on Windows? is a genuinely useful skill.
- Sharing with guests: A friend or family member visits and you want to give them access without hunting for the router label.
- Connecting a new device: You bought a new phone, tablet, or smart TV and need the password to connect it.
- Router reset: After a factory reset, your devices lose the saved password and you need to re-enter it.
- Traveling: You connect to a hotel or office network on your laptop and later want to connect your phone to the same network.
- IT support: Technicians often need to verify or document network credentials for business environments.
- Forgotten password: Simply put, you set it up a long time ago and cannot remember it.
Whatever your reason, the methods below will work on any modern Windows machine where you have administrator privileges and have previously connected to the network.
Requirements Before You Start
Before attempting to retrieve a Wi-Fi password, make sure the following conditions are met:
- You are using Windows 10 or Windows 11 (these methods also work on Windows 8 and 7 with minor differences).
- You have previously connected to the Wi-Fi network whose password you want to recover.
- You are logged into an account with administrator privileges. Some methods require elevation.
- The network profile has not been deleted from your system.
If you have never connected to the network on this particular computer, Windows will not have the password stored, and these methods will not help. In that case, you will need to find the password on the router itself or contact your internet service provider.
Method 1: How to See Wifi Password on Windows? Using Netsh Command
This is the primary and most reliable method. It works on every version of Windows that supports the netsh wlan module, which is essentially every Windows release from XP onward. Here is the exact step-by-step process.
Step 1: Open Command Prompt as Administrator
Press the Windows key, type cmd, and right-click on “Command Prompt” in the search results. Select “Run as administrator.” A User Account Control prompt will appear; click “Yes.” You should see a window titled “Administrator: Command Prompt” with a blinking cursor.
Step 2: List All Saved Wi-Fi Profiles
Before you can retrieve a password, you need to know the exact name of the Wi-Fi profile as Windows stored it. Type the following command and press Enter:
netsh wlan show profiles
Windows will display a list under “User Profiles” showing every Wi-Fi network your computer has ever connected to. Note the exact name of the network whose password you want to recover. Names are case-sensitive, so copy them exactly as shown.
Step 3: Retrieve the Password
Now run the following command, replacing YourNetworkName with the actual SSID:
netsh wlan show profile name="YourNetworkName" key=clear
Press Enter. Windows will output a detailed block of information about that network profile. Scroll down to the “Security settings” section. You will see a line that reads:
Key Content : yourpasswordhere
The value after the colon is your Wi-Fi password. That is the complete answer to “How to See Wifi Password on Windows?” using the netsh command.
Step 4: Handle Special Characters in Network Names
If your network name contains spaces or special characters, wrap the entire name in double quotes as shown above. If the name contains quotation marks itself, you may need to use the interface name instead. You can also specify the interface with the interface= parameter, but for most home users this is unnecessary.
Method 2: Using Windows Settings (Graphical Method)
If you prefer not to use the command line, Windows offers a graphical way to view saved Wi-Fi passwords. This method is slightly more limited but works well for the currently connected network.
Steps to Follow
- Open Settings by pressing Windows + I.
- Navigate to Network & Internet, then click on Wi-Fi.
- Click on “Manage known networks.”
- Select the network whose password you want to view.
- Click “Properties.”
- Scroll down to the “Network security key” field.
- Click the eye icon or “Show characters” checkbox to reveal the password.
Note: In some Windows 11 builds, the password field may be hidden behind an administrator prompt. You will need to enter your Windows account password or PIN to reveal it. This is a security feature designed to prevent unauthorized access to stored credentials.
Method 3: Using Control Panel Network Settings
The classic Control Panel method still works on Windows 10 and Windows 11 and is familiar to long-time Windows users.
Steps to Follow
- Press Windows + R to open the Run dialog.
- Type
ncpa.cpland press Enter to open Network Connections. - Right-click your active Wi-Fi adapter and select “Status.”
- Click the “Wireless Properties” button.
- Go to the “Security” tab.
- Check the box labeled “Show characters.”
- The Network security key field will now display your Wi-Fi password in plain text.
This method only shows the password for the network you are currently connected to. If you need a password for a network you are not currently connected to, use the netsh method in Method 1 instead.
Method 4: Using PowerShell
PowerShell offers another command-line approach that is especially useful for scripting and automation. System administrators often prefer PowerShell because it integrates well with other management tasks.
Steps to Follow
- Press Windows + X and select “Windows PowerShell (Admin)” or “Terminal (Admin).”
- Run the following command to list profiles:
netsh wlan show profiles
- Then run this command to extract the password programmatically:
(netsh wlan show profile name="YourNetworkName" key=clear) | Select-String "Key Content"
This filters the output so you only see the line containing the password, making it easier to read and copy. You can also loop through all profiles with a short script to export every saved password to a text file, which is useful for backup purposes on your own machine.
How to See All Saved Wi-Fi Passwords at Once
If you want to recover passwords for every network your computer remembers, you can automate the process. This is particularly helpful when migrating to a new computer or documenting your network credentials.
Open Command Prompt as administrator and run this single command:
for /f "skip=9 tokens=1,2 delims=:" %i in ('netsh wlan show profiles') do @echo %j | findstr -i -v "echo" && netsh wlan show profile name="%j" key=clear | findstr "Key Content"
This one-liner iterates through every saved profile and prints only the Key Content line for each. The output will look like a list of network names followed by their passwords. Be careful with this command — anyone with access to your computer could run it and see all your stored credentials.
Alternatively, you can create a simple batch file that exports everything to a text file on your desktop. Save the following as export_wifi.bat and run it as administrator:
@echo off
setlocal enabledelayedexpansion
for /f "skip=9 tokens=1,2 delims=:" %%i in ('netsh wlan show profiles') do (
set "ssid=%%j"
set "ssid=!ssid:~1!"
echo Network: !ssid!
netsh wlan show profile name="!ssid!" key=clear | findstr "Key Content"
echo.
)
pause
This script is a convenient way to answer “How to See Wifi Password on Windows?” for every network at once without typing each name individually.
Comparison of Methods
Each method has its strengths and limitations. The table below summarizes them so you can choose the one that best fits your situation.
| Method | Works for Current Network | Works for Saved (Disconnected) Networks | Requires Admin Rights | Difficulty Level |
|---|---|---|---|---|
| Netsh Command (Method 1) | Yes | Yes | Yes (for key=clear) | Beginner |
| Windows Settings (Method 2) | Yes | Limited | Sometimes | Very Easy |
| Control Panel (Method 3) | Yes | No | No | Easy |
| PowerShell (Method 4) | Yes | Yes | Yes | Intermediate |
| Batch Export Script | Yes | Yes | Yes | Intermediate |
For most users, Method 1 (netsh) is the best choice because it is fast, works for any saved network, and requires only a single command once you know the network name.
Troubleshooting Common Issues
Sometimes the process does not go smoothly. Here are the most common problems and how to fix them.
Issue: “The wireless autoconfig service is not running”
This error appears when the WLAN AutoConfig service is disabled. To fix it, press Windows + R, type services.msc, and press Enter. Find “WLAN AutoConfig,” double-click it, set Startup type to “Automatic,” and click “Start.” Then retry the netsh command.
Issue: “Profile not found” or “There is no such interface”
This usually means the network name was typed incorrectly. Run netsh wlan show profiles again and copy the exact name, including spaces and capitalization. If the profile was deleted, Windows no longer has the password.
Issue: “Key Content” is blank or shows “Not present”
This happens when the network uses an open (unsecured) Wi-Fi connection with no password, or when the profile was created without saving the key. There is nothing to recover in this case because no password was ever stored.
Issue: Access denied when running netsh
You must run Command Prompt as Administrator. Right-click the Command Prompt icon and select “Run as administrator.” Standard user accounts cannot access the key=clear parameter for security reasons.
Issue: Password contains special characters that are hard to copy
Click and drag to select the text in the Command Prompt window, then right-click to copy. Alternatively, redirect the output to a text file with > C:\wifi.txt at the end of the command and open the file in Notepad.
Security and Privacy Considerations
Knowing How to See Wifi Password on Windows? is powerful, but it also carries responsibility. Anyone with administrator access to your computer can run these commands and see every saved Wi-Fi password. This has important implications:
- Shared computers: On a family or work computer, anyone with admin rights can extract passwords.
- Malware: Malicious software running with elevated privileges can silently dump all saved Wi-Fi credentials.
- Physical access: Someone who briefly accesses your unlocked computer can recover passwords in seconds.
To protect yourself, always lock your computer when stepping away, use a strong Windows account password, and avoid granting administrator privileges to untrusted users. If you suspect your credentials have been compromised, change your Wi-Fi password on the router immediately and reconnect your devices.
Tips and Best Practices
- Use a password manager: Store your Wi-Fi password in a reputable password manager so you never need to recover it.
- Document credentials securely: Keep a written record in a secure location, not on a sticky note attached to the router.
- Change default router passwords: Many routers ship with default passwords printed on the label. Change these to strong, unique credentials.
- Use WPA3 or WPA2: Ensure your router uses modern encryption. Avoid WEP and open networks.
- Periodically audit saved profiles: Run
netsh wlan show profilesand delete profiles for networks you no longer use withnetsh wlan delete profile name="NetworkName". - Enable Windows Hello: Biometric login reduces reliance on typed passwords and adds a security layer.
- Keep Windows updated: Security patches protect the credential store from known vulnerabilities.
Frequently Asked Questions
Can I see the Wi-Fi password without administrator rights?
For the currently connected network, the graphical methods in Settings and Control Panel may work without admin rights depending on your Windows version. However, the netsh key=clear parameter requires administrator privileges. If you do not have admin rights, ask your IT administrator or use the Control Panel method for the active connection.
Does this work on Windows 11?
Yes. All methods described in this guide work on Windows 11. The netsh command syntax is identical, and the Settings app has been slightly redesigned but the path to Wi-Fi properties remains the same.
Is it legal to view saved Wi-Fi passwords on my own computer?
Yes. Viewing passwords stored on your own device is completely legal. However, using these methods to extract passwords from a computer you do not own or have permission to access may violate computer fraud and privacy laws.
What if I want to delete a saved Wi-Fi profile?
Run netsh wlan delete profile name="NetworkName" in an elevated Command Prompt. This removes the profile and its stored password from your system.
Why does Windows store passwords in plain text?
Windows stores them in a format that can be decrypted by the operating system and authorized users. The key=clear parameter simply tells Windows to display the already-stored credential. This is by design for convenience and automatic reconnection.
Can I use netsh on macOS or Linux?
No. Netsh is a Windows-specific tool. macOS users can use Keychain Access, and Linux users can check /etc/NetworkManager/system-connections/ or use nmcli to view saved Wi-Fi passwords.
How do I find the password if I am not connected and have no saved profile?
If the profile does not exist on your computer, you cannot recover it with netsh. Check the label on your router, log into the router’s admin panel (usually at 192.168.1.1 or 192.168.0.1), or contact your internet service provider.
Conclusion
Now you know exactly How to See Wifi Password on Windows? using multiple reliable methods. The netsh command remains the most versatile and powerful option, capable of revealing passwords for any network your computer has ever connected to. Whether you prefer the command line or the graphical interface, Windows gives you the tools to recover forgotten credentials without resetting your router or calling technical support.
Remember to use these capabilities responsibly. Protect your own credentials by locking your computer, using strong account passwords, and periodically cleaning up old Wi-Fi profiles. With the knowledge from this guide, you will never be locked out of your own network again.