How To Know The Password Of Wifi Using Cmd

5 min read

Knowing how to find the password of a Wi-Fi network using Command Prompt is a practical Windows skill that can save you time when you need to reconnect a device, share your own network with a guest, or recover a password you saved months ago. Basically, this method works when your PC has connected to the network before and stored the credentials. It can only show passwords for Wi-Fi profiles that are already saved on your Windows computer. The important detail is that CMD cannot magically reveal the password of any Wi-Fi network around you. It is a recovery technique for authorized users, not a hacking tool.

Before you begin, make sure you are using a Windows laptop or desktop that has previously connected to the Wi-Fi network you want to check. Still, always use this method only on networks you own or have explicit permission to access. Some systems show the saved password without extra permissions, but if the password field is hidden, you may need to open Command Prompt as administrator. You will also need access to Command Prompt. Trying to retrieve or use someone else’s Wi-Fi password without permission can violate privacy laws and network policies Which is the point..

What You Need Before Using CMD to Find a Wi-Fi Password

To use Command Prompt to view a saved Wi-Fi password, you need a few basic things in place:

  • A Windows 10 or Windows 11 computer.
  • A Wi-Fi network profile that is already saved on that computer.
  • The exact name of the Wi-Fi network, also called the SSID.
  • Command Prompt access.
  • Administrator permission if Windows does not display the password immediately.

The key phrase here is saved Wi-Fi profile. Windows stores network details so you do not have to type the password every time you connect. CMD simply reads that stored information and displays it. If the computer has never connected to the network, there is no saved profile to read Most people skip this — try not to..

Step 1: Open Command Prompt

Several ways exist — each with its own place. The quickest method is:

  1. Press Windows + R to open the Run dialog.
  2. Type cmd.
  3. Press Ctrl + Shift + Enter to open Command Prompt as administrator.
  4. Select Yes if Windows asks for permission.

You can also search for Command Prompt in the Start menu, right-click it, and choose Run as administrator. Running CMD as administrator is not always required, but it helps avoid permission issues when Windows tries to display the saved password.

Step 2: List All Saved Wi-Fi Profiles

Once Command Prompt is open, type the following command and press Enter:

netsh wlan show profiles

This command lists every Wi-Fi network profile saved on your computer. You will see a section called User profiles with entries such as:

All User Profile     : HomeWiFi
All User Profile     : OfficeNetwork
All User Profile     : CafeGuest

Look through the list and find the exact name of the Wi-Fi network whose password you want to recover. In real terms, pay attention to spelling, spaces, capitalization, and symbols. If the network name is My Home Wi-Fi, you must use that exact name in the next command.

Step 3: Show the Wi-Fi Password With Key Content

Now use the following command, replacing YourWiFiName with the exact name of the saved network:

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

Take this: if the network is called HomeWiFi, the command would be:

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

Press Enter. Here's the thing — windows will display a detailed profile report. Scroll down to the section labeled Security settings Took long enough..

The line you are looking for is labeled Key Content and its value is the Wi‑Fi password. It appears something like:

Key Content            : MySecurePassword

You can copy the password directly from this line, or you can pipe the output to a simple text‑search command to isolate it. Take this: after running the profile command you might use:

netsh wlan show profile name="YourWiFiName" key=clear | findstr "Key Content"

This will display only the line containing “Key Content”, making it easy to read or copy the password without scrolling through the entire profile report.

If you prefer a one‑liner that extracts the password value, you can add a small snippet that removes the label:

netsh wlan show profile name="YourWiFiName" key=clear ^| findstr "Key Content" ^| findstr /v "Key Content"

The last command prints just the password string, which you can then paste into a document or use immediately.

Tip: When you run the commands, make sure you type the exact SSID, including any spaces or special characters, inside quotes. As an example, if the network is called “CoffeeShop Wi‑Fi”, the command would be:

netsh wlan show profile name="CoffeeShop Wi‑Fi" key=clear

Conclusion

Using Command Prompt you can swiftly retrieve a saved Wi‑Fi password without needing third‑party tools. The process boils down to three simple actions: opening CMD as administrator, listing saved profiles to identify the correct SSID, and displaying the profile with the key=clear flag to reveal the password under the Key Content line. This method works only for networks you have previously connected to, and it’s a handy way to recover a forgotten password or share it with a trusted device. Keep the recovered password confidential and use it responsibly.

It sounds simple, but the gap is usually here And that's really what it comes down to..

New This Week

Latest Additions

Related Territory

Readers Loved These Too

Thank you for reading about How To Know The Password Of Wifi Using Cmd. We hope the information has been useful. Feel free to contact us if you have any questions. See you next time — don't forget to bookmark!
⌂ Back to Home