Setup and Configuration

How to See Wifi Password on Windows 10? Use Command Prompt

Introduction If you have ever connected your Windows 10 computer to a wireless network and later forgotten the password, you are not alone. It happens to everyone. Maybe you need to share the network with a guest, connect a new device, or troubleshoot a connec

HowToFixWiFi

Introduction

If you have ever connected your Windows 10 computer to a wireless network and later forgotten the password, you are not alone. It happens to everyone. Maybe you need to share the network with a guest, connect a new device, or troubleshoot a connection issue. Whatever the reason, knowing How to See Wifi Password on Windows 10? can save you a lot of frustration. The good news is that Windows 10 stores every Wi-Fi password you have ever successfully used, and you can retrieve it without installing any third-party software.

One of the most reliable and fastest ways to do this is by using the Command Prompt. This method works even when the network is not currently connected, as long as the profile is still saved on your computer. In this guide, we will walk you through everything step by step, explain alternative methods, and share helpful tips so you can recover your Wi-Fi password with confidence.

Table of Contents

Why Windows 10 Stores Wi-Fi Passwords

Windows 10 keeps a record of every wireless network profile you have connected to. When you type a Wi-Fi password and check the box that says “Connect automatically,” Windows saves that credential in a secure location on your hard drive. This is why your computer reconnects to familiar networks without asking you to type the password again every time.

These saved profiles contain the network name (SSID), security type, and the password itself, which Windows refers to as the “key content.” The operating system protects this data, but an administrator account can still access it through built-in tools like Command Prompt. This design is intentional. It helps users manage their networks and recover forgotten credentials without relying on external software.

Before You Begin

Before you try to retrieve a Wi-Fi password, make sure you meet a few basic requirements. First, you need to be logged into Windows 10 with an account that has administrator privileges. Standard user accounts cannot view stored Wi-Fi passwords. Second, the network must have been connected to at least once on that particular computer. If you never connected to the network from this device, Windows will not have the password stored. Third, you should be familiar with opening Command Prompt as an administrator, which we will cover in detail below.

It is also worth noting that this method is intended for recovering your own passwords or networks you are authorized to access. Using it to obtain passwords for networks you do not own or have permission to use may violate laws and policies.

How to See Wifi Password on Windows 10? Using Command Prompt

The Command Prompt method is one of the most efficient ways to retrieve a saved Wi-Fi password. It uses a built-in Windows utility called netsh, which stands for network shell. The netsh command can display detailed information about network profiles, including the password in plain text. This method works on Windows 10 and also works on Windows 11, Windows 8, and Windows 7 with slight variations.

The process takes only a few seconds once you know the exact network name. Even if you are not currently connected to that network, as long as the profile exists on your computer, you can still retrieve the password.

Step-by-Step: Command Prompt Method

Follow these steps carefully to see your Wi-Fi password using Command Prompt.

  1. Click the Start button and type cmd in the search box.
  2. Right-click on Command Prompt in the search results and select Run as administrator.
  3. If a User Account Control prompt appears, click Yes to allow the program to make changes.
  4. In the Command Prompt window, type the following command and press Enter: netsh wlan show profiles
  5. This will display a list of all saved Wi-Fi network profiles on your computer. Note the exact name of the network whose password you want to recover.
  6. Now type the following command, replacing NetworkName with the actual name of your Wi-Fi network: netsh wlan show profile name="NetworkName" key=clear
  7. Press Enter. The output will show detailed information about that network profile.
  8. Look for the line that says Key Content. The value next to it is your Wi-Fi password.

For example, if your network name is HomeNetwork, the command would be:

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

The output will include sections such as General, Connectivity settings, and Security settings. Under the Security settings section, you will find the Key Content line displaying your password in plain text.

How to View Passwords for All Saved Networks

If you want to retrieve passwords for multiple networks at once, you can use a simple batch script or loop command in Command Prompt. This is especially useful if you manage several devices or need to document your saved networks.

Open Command Prompt as an administrator and run the following 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 command loops through all saved profiles and displays the Key Content for each one. The output may be slightly messy, but it will show you all stored passwords in one go. For cleaner results, you can redirect the output to a text file:

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" >> C:\wifi_passwords.txt

After running this, open the file C:\wifi_passwords.txt to see all your saved Wi-Fi passwords listed together.

Alternative Method: Windows Settings

If you prefer a graphical interface over the command line, Windows 10 offers a way to view your current Wi-Fi password through the Settings app. However, this method only works for the network you are currently connected to.

  1. Open Settings by pressing Windows key + I.
  2. Click on Network and Internet.
  3. Select Status from the left sidebar.
  4. Click on Network and Sharing Center under the advanced network settings.
  5. Click on your active Wi-Fi network name.
  6. In the Wi-Fi Status window, click Wireless Properties.
  7. Go to the Security tab.
  8. Check the box that says Show characters.
  9. Your password will appear in the Network security key field.

This method is user-friendly but limited. It cannot show passwords for networks you are not currently connected to.

Alternative Method: Control Panel

The Control Panel method is similar to the Settings method but uses the classic Windows interface. It is useful for users who are more comfortable with the traditional Control Panel.

  1. Press Windows key + R to open the Run dialog.
  2. Type control panel and press Enter.
  3. Click on Network and Internet, then Network and Sharing Center.
  4. Click on your active Wi-Fi connection.
  5. Click Wireless Properties.
  6. Switch to the Security tab.
  7. Check Show characters to reveal the password.

Like the Settings method, this only works for the currently connected network.

Alternative Method: PowerShell

PowerShell is another powerful command-line tool built into Windows 10. It can accomplish the same task as Command Prompt with slightly different syntax. Some users prefer PowerShell because it offers more advanced scripting capabilities.

  1. Right-click the Start button and select Windows PowerShell (Admin).
  2. Type the following command and press Enter: (netsh wlan show profiles) | Select-String "\:(.+)$" | %{$name=$_.Matches.Groups[1].Value.Trim(); $_} | %{(netsh wlan show profile name="$name" key=clear)} | Select-String "Key Content\W+\:(.+)$" | %{$pass=$_.Matches.Groups[1].Value.Trim(); $_} | %{[PSCustomObject]@{PROFILE_NAME=$name;PASSWORD=$pass}}
  3. The output will list all saved network profiles along with their passwords in a clean table format.

This PowerShell one-liner is popular among IT professionals because it formats the output nicely and can be easily integrated into larger scripts.

Comparison of Methods

The table below compares the different methods for retrieving a Wi-Fi password on Windows 10. Use it to decide which approach best fits your needs.

Method Works for Non-Connected Networks Requires Admin Rights Difficulty Level Best For
Command Prompt (netsh) Yes Yes Easy Quick password recovery
Windows Settings No No Very Easy Current network only
Control Panel No No Very Easy Current network only
PowerShell Yes Yes Moderate Batch processing and scripting
Third-Party Tools Yes Varies Easy Users who prefer GUI tools

Troubleshooting Common Issues

Sometimes things do not go as planned. Here are some common issues you might encounter when trying to see your Wi-Fi password on Windows 10 and how to fix them.

Network Profile Not Found

If the command returns “Profile not found,” double-check the spelling of the network name. Network names are case-sensitive in some situations. Run netsh wlan show profiles again and copy the exact name from the output.

No Key Content Displayed

If you see the profile information but no Key Content line, it usually means the password was not saved or the network uses an open (no password) configuration. It can also happen if the profile was created on a different user account.

Access Denied Error

This error appears when Command Prompt is not running as an administrator. Close the window and reopen it using “Run as administrator.” Also ensure your Windows account has admin privileges.

Profile Was Deleted

If you or someone else deleted the network profile, Windows no longer has the password stored. In this case, you will need to retrieve the password from your router’s admin panel or from another device that is still connected to the network.

Security Tips and Best Practices

Retrieving your Wi-Fi password is convenient, but it also highlights the importance of securing your credentials. Keep these best practices in mind.

  • Only run password recovery commands on computers you own or are authorized to manage.
  • Avoid saving passwords in plain text files on shared or public computers.
  • Use strong, unique Wi-Fi passwords and change them periodically.
  • Enable WPA3 or WPA2 encryption on your router for better security.
  • Remove saved network profiles for networks you no longer use by running netsh wlan delete profile name="NetworkName".
  • Keep your Windows 10 system updated to protect against security vulnerabilities.
  • Consider using a password manager to store your Wi-Fi credentials securely.

Frequently Asked Questions

Can I see the Wi-Fi password if I am not connected to the network?

Yes. The Command Prompt and PowerShell methods work for any saved network profile, regardless of whether you are currently connected to it.

Do I need administrator rights?

Yes. Viewing stored Wi-Fi passwords requires an administrator account because the credentials are protected by the operating system.

Is this method safe?

Yes. You are using built-in Windows tools, not third-party software. As long as you run the commands on your own computer, there is no security risk.

Why does my password not appear?

If the password is not saved, the network uses open security, or the profile belongs to another user account, the Key Content field may be blank.

Can I use this on Windows 11?

Yes. The same netsh commands work on Windows 11 with identical steps.

What if I forgot the password and it is not saved anywhere?

You can log into your router’s admin panel, usually by typing 192.168.1.1 or 192.168.0.1 in a browser, and find the Wi-Fi password under wireless settings. You may also check the sticker on the router itself.

Conclusion

Knowing How to See Wifi Password on Windows 10? is a valuable skill that can save you time and hassle. The Command Prompt method using netsh is fast, reliable, and works for any saved network on your computer. Whether you prefer the command line or a graphical interface, Windows 10 gives you multiple ways to recover your Wi-Fi password without third-party tools. Just remember to use these methods responsibly and keep your network credentials secure. With the steps outlined in this guide, you should be able to retrieve any saved Wi-Fi password in just a few seconds.