Command to Display saved WiFi password in Windows 11

What to do if you forgot the WiFi password? You could either assign a new WLAN password or you can simply see the WLAN password in plain text, saved on your computer. Well, if you just want to extract the WLAN password from your computer then you don’t need any extra software. We can either use the graphical user interface or the command line to see the passwords of Wi-Fi networks saved on our PC, here we will show you how?

Find WiFi password in Windows 11 using Terminal

1. Requirements:

The prerequisite to performing this tutorial to read the WLAN password is met as soon as you have connected your Windows 11 computer to the relevant WLAN. The key is then stored in the system and can be made visible again using the command prompt (or Windows PowerShell / Terminal).

Hence, it doesn’t matter the network is connected to your PC or not or you have disconnected it months ago; still, you can retrieve the password.


2. Run Windows 11 Terminal (admin)

As this tutorial is command-oriented, hence, first access the same. Right-click on the Windows 11 Start menu and select “Windows Terminal (Admin)“. This will prompt you to run the terminal under administrative rights, so select the YES button.

RUn Windows 11 Terminal Admin

Now you can use the following command to get an overview of all WiFi networks that have ever been connected.


3. Show WLAN profile

The first thing we want to see is the list of all the Wi-Fi networks so far connected to your system. It is because to read the Wireless network password, we first need to know what are the SSIDs Name. For that on your PowerShell or Windows terminal type:

netsh wlan show profile

netsh wlan show profile


4. Check and Read the wifi password you forgot

Next, from the appeared list of the Wireless profiles, select or note the one for which you want to read the password. You can see in the above screenshot, we have five WLAN SSIDs connected so far on our system; in the same way, you will also have.

After that use the given syntax

netsh wlan show profile profile-SSID-Name key=clear

Look for the name of the desired network and then replace profile-SSID-Name in the above command with that to let the WLAN password be displayed.

For example:

netsh wlan show profile FTTH key=clear

Command to Display saved WiFi password in Windows 11

As you can see in the above screenshot, after running the command, we were able to easily display the WLAN password. You can find yours at – Scroll to “Security Settings” and then in front “Key Content” given value is your Wi-Fi password.

Hence, in this way, we can get back the forgotten WLAN password. On the other hand, it is also an easy way for everyone to be able to read the password.


5. Delete WiFi profile in Windows 11 (optional)

Well, in case there are other users using the same system and you don’t let them find out the password of any previously connected Wi-Fi particularly confidential or personal WiFi profiles, you can delete them as well using the command as soon as you no longer need them.

Deleting a WiFi profile is just as easy as displaying the WiFi password. Here is the command or syntax you can use:

netsh wlan delete profile profile-SSID-Name

Once you run the above command along with the SSID or profile name, Windows will forget that connection and remove the password stored for that on your system. Hence, the system will no longer be able to establish a WLAN connection to that network unless it is not reestablished manually by entering the WiFi password again.


This was the quick way to use the Windows command terminal or Powershell to find out the WiFi passwords that you entered ages ago. However, along with its advantage, it also shows us how dangerous it can be to save Wi-Fi passwords on an unknown PC because anyone can read your WiFi key.