How to Check WiFi Password in Windows 11 CMD: A Step-by-Step Guide

Photo of author

By Matthew Simpson

Checking your WiFi password in Windows 11 using Command Prompt (CMD) is a straightforward task that can be completed in just a few steps. This method is especially useful if you’ve forgotten your WiFi password and need to retrieve it without resetting your router or accessing WiFi settings through the Control Panel. By following the steps below, you can quickly find your WiFi password using CMD.

How to Check WiFi Password in Windows 11 CMD

The following steps will guide you through the process of using Command Prompt to find your WiFi password in Windows 11. This method works for any wireless network you’ve previously connected to.

Step 1: Open Command Prompt

To begin, press the Windows key, type “cmd” into the search bar, and select “Run as administrator.”

Running Command Prompt as an administrator ensures you have the necessary permissions to execute the required commands.

Step 2: Display WiFi Profiles

Type netsh wlan show profiles and press Enter.

This command will list all the wireless profiles saved on your computer. You’ll need the profile name of the WiFi network whose password you want to retrieve.

Step 3: Select Your WiFi Network

Identify the WiFi network from the list displayed.

Make sure you note the exact name of the WiFi network, as you will need it for the next step.

Step 4: Display WiFi Password

Type netsh wlan show profile name="YourWiFiName" key=clear and press Enter. Replace "YourWiFiName" with the name of your WiFi network.

This command will display detailed information about the WiFi network, including the password.

Step 5: Find the Key Content

Look for the “Key Content” in the results.

The WiFi password will be displayed next to “Key Content” in the output of the command.

After completing these steps, you will see the WiFi password clearly displayed in the Command Prompt window.

Tips for Checking WiFi Password in Windows 11 CMD

  • Always run Command Prompt as an administrator to avoid permission issues.
  • Ensure you type the WiFi network name exactly as it appears.
  • If you encounter issues, make sure your Command Prompt is updated.
  • Keep your WiFi password secure after retrieving it.
  • Use these steps to check passwords for other saved networks as well.

Frequently Asked Questions

Can I find the password for any WiFi network using CMD?

No, you can only find passwords for WiFi networks that your computer has previously connected to.

What does “key=clear” do in the command?

The “key=clear” part of the command reveals the password in plain text.

Do I need to be connected to the WiFi network to find the password?

No, the network just needs to be one your computer has connected to before.

Can I use this method on older versions of Windows?

Yes, this method works on older versions like Windows 10, 8, and 7.

Is there any risk in using CMD to find my WiFi password?

As long as you run the Command Prompt as an administrator, there is no significant risk.


  1. Open Command Prompt as an administrator.
  2. Type netsh wlan show profiles.
  3. Identify your WiFi network.
  4. Type netsh wlan show profile name="YourWiFiName" key=clear.
  5. Find the “Key Content” for the password.


Finding your WiFi password in Windows 11 using CMD is a handy trick that can save you time and frustration. Instead of digging through network settings or resetting your router, a few simple commands can reveal the password for any previously connected network. This method is not only efficient but also secures the integrity of your network by avoiding unnecessary configuration changes.

Remember to always handle your WiFi passwords with care to maintain network security. If you found this guide helpful, consider exploring other CMD capabilities to enhance your tech-savviness. Checking WiFi passwords in Windows 11 CMD is just one of many commands that can make your computing life easier. Happy troubleshooting!