Find WLAN password from the command line

If I’ve been there once, I’ve been there a thousand times; I’ve connected to a wireless network with my computer, but want to connect with my phone, too. The only problem is that I don’t know what the WLAN password is. Luckily, you can find the password to networks you’ve connected to using the command line. Here’s how:

  1. Open the command line
  2. Identify the network profile name using this command:
    netsh wlan show profile
  3. Run the same command, with a few additions to find the password:
    netsh wlan show profile <WLAN NAME> key=clear
  4. Scroll down to Security settings, and you should find the password under Key Content.

By posting a comment, you consent to our collecting the information you enter. See privacy policy for more information.

This site uses Akismet to reduce spam. Learn how your comment data is processed.