How To Check Wifi Password Using Cmd

4 min read

Forgetting a Wi-Fi password is one of those small problems that can derail an entire afternoon. Which means maybe a new device needs to connect, a guest asks for the network key, or you simply want to keep a record of your home network credentials before resetting the router. The good news is that if your Windows laptop or desktop has connected to that network before, the password is already stored on the machine — and you can retrieve it in seconds using nothing more than Command Prompt. This guide walks you through exactly how to check Wi-Fi password using CMD, explains what each command does behind the scenes, and covers the troubleshooting steps to use when something goes wrong.

Why Use Command Prompt to Find a Wi-Fi Password

Windows keeps a profile for every wireless network it has ever joined, including the security key used to authenticate. That information is tucked away in the system's configuration store, which is not visible through normal Settings menus in a readable form. Command Prompt gives you a direct line to that store through netsh, a built-in networking utility that has shipped with Windows for decades.

This changes depending on context. Keep that in mind.

There are several practical reasons to prefer this method:

  • No third-party software required. You do not need to download password-recovery tools that may bundle adware or require paid upgrades.
  • It works offline. The command reads locally saved data, so you do not need an active internet connection.
  • It is fast and repeatable. Once you know the two commands, the whole process takes under a minute.
  • It works on older and newer Windows versions. Windows 10, Windows 11, Windows 8.1, and Windows 7 all support the same syntax.

The one important limitation: this method only reveals passwords for networks your computer has already connected to and saved. It cannot crack a network you have never joined, and it will not work on a device that has never been on that Wi-Fi.

What You Need Before You Start

Before running any commands, confirm the following:

  1. You are on the Windows device that previously connected to the network. The saved profile lives on that specific machine.
  2. You have administrator access. Standard user accounts may be blocked from viewing the plaintext key.
  3. The WLAN AutoConfig service is running. This is the Windows service that manages wireless profiles; if it is disabled, netsh wlan commands will fail.

A quick note on ethics: only retrieve passwords for networks you own or have explicit permission to access. Reading a saved key on your own laptop is a legitimate administrative task; extracting someone else's credentials is not.

Step-by-Step: How to Check Wi-Fi Password Using CMD

Step 1: Open Command Prompt as Administrator

Click the Start button, type cmd or Command Prompt, then right-click the result and choose Run as administrator. Approve the User Account Control prompt if it appears.

Running as administrator matters because the plaintext password field is protected. Without elevated privileges, the command will often return the profile details but leave the key hidden or throw an "Access is denied" error.

Step 2: List All Saved Wi-Fi Profiles

In the Command Prompt window, type the following and press Enter:

netsh wlan show profiles

You will see a section titled User profiles listing every wireless network name (SSID) saved on the computer. Scan the list and note the exact name of the network whose password you need — including capitalization and spacing, since the next command is name-sensitive.

Step 3: Reveal the Password for a Specific Network

Now run the command that exposes the key. Replace YourNetworkName with the exact SSID from the previous step, keeping the quotation marks:

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

Press Enter and scroll through the output. Look for the heading Security settings. Directly beneath it you will find a line labeled Key Content — the value next to it is your Wi-Fi password in plain text.

Step 4: Check Which Network You Are Currently Connected To

If you are unsure of the SSID you are on right now, run:

netsh wlan show interfaces

The output displays the SSID of the active connection along with signal strength, radio type, and authentication method. This is handy when several similarly named networks exist, such as HomeWiFi and HomeWiFi_5G.

Bonus: Export Every Saved Password at Once

If you are migrating to a new computer or backing up credentials, you can export all profiles — including their keys — to a folder in one command:

netsh wlan export profile folder=C:\WiFiBackup key=clear

Windows writes one XML file per network into that folder. In practice, open them in Notepad and search for the keyMaterial tag to read each password. Treat these files like passwords themselves and delete them once you are done Worth keeping that in mind..

Understanding the Command Output

When you run the key=clear command, the output is divided into logical blocks. Knowing what each one means helps you confirm you have the right information:

  • General information — the profile name, SSID, and connection type.
  • Connectivity settings — whether the network connects automatically and whether it is metered.
  • Security settings — the authentication type (WPA2-Personal, WPA3-Personal, or open) and the cipher used. This is where Key Content appears.
  • Cost settings — data usage warnings configured for the network.

If the authentication

Freshly Written

Just Posted

Same Kind of Thing

Other Perspectives

Thank you for reading about How To Check Wifi Password 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