How to Find Wireless Network Password Using Windows 10 Command Line?

Here we discuss everything about Computer Networking and Configuration.
Post Reply
amalan
Posts: 5
Joined: 08 Oct 2023, 10:53

How to Find Wireless Network Password Using Windows 10 Command Line?

Post by amalan »

Can we find Wireless key with any Command line tools?
Xavior
Global Moderator
Posts: 73
Joined: 08 Oct 2023, 15:19
Location: Brooklyn

Re: How to Find Wireless Network Password Using Windows 10 Command Line?

Post by Xavior »

You might be wondering whether there are methods to find the WiFi password (Wireless Key) of a wireless network using your Windows 10 computer.

The answer is yes. You can view the WiFi password of a network using Windows 11/10 Command Prompt.

There are many methods to find the wireless key of a network. But if you want to view the password of the currently connected network, you need to use the Command line on Windows 11.

Let me show you how to do it on your PC. You need to open Command Prompt to perform this trick.
Xavior
Global Moderator
Posts: 73
Joined: 08 Oct 2023, 15:19
Location: Brooklyn

Re: How to Find Wireless Network Password Using Windows 10 Command Line?

Post by Xavior »

Find Wireless Network Password With Windows 11 Command Prompt

  1. Open Windows 11 Search (by pressing the Windows and S keys together, then type Command Prompt on Windows Search.

    Image

    Click on it to start it.
  2. Type the command netsh wlan show profiles and press the Enter key.

    Image

    You can see the two WiFi profiles saved on this PC.
  3. We can find the WiFi security key of these two wireless profiles using the Command Line below.

    Code: Select all

    [i]netsh wlan show profile name="XXXX" key=clear[/i]
    PS: Remove the XXXX and type the name of the WiFi (SSID) instead. Press the enter key to continue.

    Code: Select all

    For example - netsh wlan show profile name="SysToSys" key=clear
  4. Running the command, netsh wlan show profile name="SysToSys" key=clear will show you the following screen.

    Image

    To view the WiFi key of the selected wireless profile, look at the Key Content. It is below the Security Settings.

It is the safest and simplest method to find the Network Key of a WiFi network you have used on your Windows 10 computer. The above example explained the steps to find the network key of a WiFi connection named SysToSys.

By using the simple Command netsh wlan show profile name="SysToSys" key=clear, Command Prompt revealed the Security key.

Under Security Settings, we can see the Authentication type and the Security key.

This method is entirely helpful to retrieve the forgotten WiFi passphrases of the connections you had connected before.

For example, if you are curious to know the WiFi key of a hotel you had stayed in or your office network, you can use this trick. But you cannot use this trick to find the wireless key of a new WiFi network that you have not used yet.

PS: You cannot use this trick to find the Wireless Password of your neighbor.

However, this method is useful to find the security passphrase of your own connections if you forgot them.


Note: One reader asked me whether the command is case sensitive. In my experience, DOS Prompt does not case whether we type the command in capital letters or small letters.


To prove it, I have added the screenshot of the result of the command.

Image

If you check the screenshot, you can see the SSID - systosys instead of SysToSys. The result is the same in both cases.
Rahul Agarwal
Standard User
Posts: 15
Joined: 16 Nov 2023, 14:08

Check WiFi Password With Windows Command Prompt

Post by Rahul Agarwal »

Glad to know that we can find the Wifi password from the Windows Command Prompt.
Post Reply