Struggling to remember that WiFi password when on a guest network? It happens to all of us. And it gets even trickier when the password isn’t readily available. But fear not, there’s a nifty Windows command that can help you retrieve the password for a specific WiFi network.
The Shell Code
Simply open your command prompt (cmd
) and enter the following command:
netsh wlan show profile name="David Walsh's Network" key=clear
Upon executing the command, you’ll receive a detailed output containing various network information. To locate the password for the network, navigate to the “Security settings” section which will display something like this:
Security settings ----------------- Authentication : WPA2-Personal Cipher : CCMP Authentication : WPA2-Personal Cipher : GCMP Security key : Present Key Content : **THE_PLAIN_TEXT_PASSWORD**
To make your life easier, consider creating an alias for this command so you don’t have to recall the full string every time.