How to find WIFI Password using cmd

How to Find WiFi Password Using CMD (Command Prompt)

Have you ever needed to connect a new device to your WiFi network, only to realize you’ve forgotten the password? The good news is that Windows allows you to retrieve saved WiFi passwords using a built-in tool: Command Prompt (CMD). In this guide, you'll learn exactly how to find your WiFi password using CMD on Windows 10 or 11 — no router access needed.

How to find WIFI Password using cmd

Why Use CMD to Check Your WiFi Password?

This trick is especially useful if:

  • You previously connected to the WiFi network
  • You don't want to reset or open the router settings
  • You want to help a friend or set up another device

Let’s walk through the steps.

Step 1: Open Command Prompt as Administrator

Before running the command, you need to launch CMD with administrator access. Here’s how:

  1. Press Windows + S and type cmd
  2. Right-click on Command Prompt
  3. Select Run as administrator

This will open a black terminal window where you can type commands.

Step 2: Show All Saved WiFi Profiles

Next, we will find the names of all WiFi networks your computer has connected to in the past. In the CMD window, type the following command:

netsh wlan show profiles

This will show a list of all saved WiFi profiles on your laptop. Look for the one whose password you want to find.

Step 3: View the Password for a Specific WiFi Network

Once you have the network name, you can reveal its password using this command:

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

Replace WiFiName with the actual name of your network. For example:

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

After you run this command, scroll down in the output to the section labeled Security settings.

Step 4: Find the Password in "Key Content"

Under "Security settings," look for this line:

Key Content            : your_password_here

That’s your saved WiFi password. You can now use it to connect other devices.

Tips for Success

  • This method only works for WiFi networks you have connected to before
  • You must run Command Prompt as an administrator
  • If you get an error, double-check the WiFi profile name spelling

Why This Trick is Useful

Whether you’re helping someone set up their laptop or you just forgot your own password, this method works fast and requires no extra tools. It’s one of the best command prompt WiFi password tricks every Windows user should know. You don’t need to reset your router or use any third-party software. Everything is built into Windows.

Other Useful Commands

Here are a few related commands you might find helpful:

  • netsh wlan export profile – Export all WiFi settings to a file
  • ipconfig – Check your current IP address and network info
  • ping google.com – Test your internet connection

Final Thoughts

Now you know exactly how to find your WiFi password using CMD. Whether you're trying to check WiFi password using CMD, or looking for a quick way to get WiFi password using command prompt, this method is simple, safe, and reliable. It’s also one of the most searched-for solutions under terms like wifi password command prompt and wifi password show command.