This article covers how to recover your Wi-Fi password via the Windows command prompt on a Windows 10 or Windows 11 PC.

 

Recover Wi-Fi Password on Windows

First we need to reveal the target Wi-Fi network to reveal the associated password. Note, if you want to see all Wi-Fi networks (including passwords) see the Reveal All Wi-Fi Passwords section below. Alternatively you can create a Windows batch file to show all Wi-Fi network passwords or just download the one I created.

The command below will show you every Wi-Fi network that you have ever connected to on your Windows PC. To use, simply open a Windows Command Prompt window and enter the following command:

netsh wlan show profile

 

With the Wi-Fi network profiles visible, enter the following command, replacing the WIFI-TARGET-PROFILE (leave the quotes) with the profile for which you want to see the password for:

netsh wlan show profile “WIFI-TARGET-PROFILE” key=clear

 

To only show the Wi-Fi password for that target wireless network profile enter the following command:

netsh wlan show profile “WIFI-TARGET-PROFILE” key=clear | findstr “Key Content”

Note, copying and pasting into the command window may not work as the quotes (“) and (‘) are picked up differently.

 

Reveal All Wi-Fi Passwords

The following command will show you all stored Wi-Fi networks including their associated Wi-Fi passwords:

for /f “skip=9 tokens=1,2 delims=:” %i in (‘netsh wlan show profiles’) do @if “%j” NEQ “” (echo SSID: %j & netsh wlan show profiles %j key=clear | findstr “Key Content”) & echo.

Note, copying and pasting the command may not work as the quotes (“) and (‘) are picked up differently.

 

You can also save all of those Wi-Fi network details shown using the command above to a text document using the following command:

for /f “skip=9 tokens=1,2 delims=:” %i in (‘netsh wlan show profiles’) do @if “%j” NEQ “” (echo SSID: %j & netsh wlan show profiles %j key=clear | findstr “Key Content”) >> wifipasswords.txt

Note, replace “wifipasswords.txt” at the end of the above command to customize the file name which will be generated in the Windows directory you currently reside. Once again, copying and pasting the command may not work as the quotes (“) and (‘) are picked up differently.

 

Batch File to Show Wi-Fi Network Passwords

Download the following compressed file and extract the batch file. Next, open the Windows Command Prompt and open the extracted batch file at the location you saved to.

 

 

Conclusion

As always, I welcome your thoughts, questions or suggestions on my article on how to recover Wireless Network Passwords on a Windows 10 or Windows 11 PC.

You may support my work by sending me a tip using your Brave browser or by sending me a one time donation using your credit card.

Let me know if you found any errors within my article or if I may further assist you by answering any additional questions you may have.