How To Retrieve Lost Wi-Fi Password

How To Retrieve Lost Wi-Fi Password

Table of Contents

Retrieving lost WiFi passwords can be a daunting task, especially if you don‘t know where to start. Fortunately, Windows stores WiFi passwords for all known wireless networks, so you can easily retrieve them with a few simple steps.

Retrieve Wi-Fi Password Using Command Line

The first step is to open the command prompt as an administrator. Once you have done this, you can use the netsh command to retrieve a list of all WiFi profiles. To do this, enter the following command:

					netsh wlan show profiles

This will give you a list of all the WiFi profiles that are stored on your computer. The next step is to enter the following command to retrieve the password for each profile:

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

This will give you the password for the profile you specified. You can find the password under Security Settings/Key Content.

Retrieve Wi-Fi Password with PowerShell

Alternatively, you can run PowerShell script provided below that will automatically retrieve passwords for all known wireless networks on your workstation:

					$AllProfiles = netsh wlan show profiles | select-string ' :'
foreach ($profile in $AllProfiles) {
    $SSID = $profile.ToString().Split(':')[1].Substring(1)
    $password = (netsh wlan show profile name="$SSID" key=clear | Select-String 'Key Content').ToString().Split(':')[1].Substring(1)
    Write-Host 'Password for Network' $SSID ' is' $password


Once you have retrieved the password, you can use it to connect to the wireless network. It is important to remember that this method only works for networks that are already stored on your computer. If you are trying to connect to a new network, you will need to enter the password manually.

No matter which method you choose, retrieving lost Wi-Fi passwords is quite simple. Using netsh command or PowerShell script, you can quickly and easily retrieve lost Wi-Fi password in no time. Just make sure you have administrative privileges when running commands or scripts. With that in mind, you should be able to retrieve lost Wi-Fi passwords in a matter of minutes.

Share This Post

Leave a Reply