Find The Wi-Fi Password For Your Current Network With The Command Line

Find the Wi-Fi Password for Your Current Network with the Command Line

If you've connected to a Wi-Fi network, your computer usually saves that password so you don't have to enter it in every time. But sometimes you forget that password. To figure out what it is, Digital Inspiration points out that all you need to do is enter in a simple command in the command line.

Revealing a Wi-Fi password is a little different on both Windows and Mac. On Windows, you need to open up a command prompt in administrator mode. Then enter this command, substituting your Wi-Fi network name in for "labnol":

netsh wlan show profile name=labnol key=clear

On Mac, open up Terminal, and enter in this command, substituting "labnol" for your Wi-Fi network name:

security find-generic-password -ga labnol | grep password

That's it, you'll now know the password for the network you're on.

How to Get the Password of WiFi Network You Are Connected To [Digital Inspiration]


    If you happen to be on mac, you can just go through keychain access and find it easily there.

    very interesting.
    someone with elevated privileges. would be able to get into your system and grab that key . Not very secure at all!

    Its great to see there is a windows command line way as well as the GUI in windows 7. I have not checked if the windows 8/8.1 and 10 GUI still have the show network password check box from windows 7 but i suspect they do.

Join the discussion!

Trending Stories Right Now