Step 1:

To do this, use Cortana to search for “cmd” and the menu will show Command Prompt.

Simply, right-click and and select “Run as administrator.”
When you do this, a black box full of white text will appear with the prompt inside.
Basically, it’s the line with a > at the end and probably looks something like C:\WINDOWS\system32\>.

Step 2:

You should also see a blinking cursor which basically indicates where you should type.

Type: netsh wlan show profiles

The results will basically bring up a section called User Profiles.

There is a User Profile for all the Wi-Fi networks (aka WLANs, or wireless local area networks) you’ve accessed and saved in the past.

Step 3:

From the list above, pick the one you want to get the password for, highlight it, and copy it.

Next, type the following, netsh wlan show profiles (The Name of the Wi-Fi You Selected to Hack) key=clear

Note that if the network name has spaces in it, you will need to include quotation marks around the network name.

In my example, I entered netsh wlan show profiles BTHub5-G9RS key=clear

Show WiFi password Windows command prompt (cmd)

In the data that comes up, look for “Security Settings” and next to “Key Content” is the Wi-Fi password. I’ve hidden mine for obvious reasons in the above image 😉

If you happen to use macOS and you’ve gotten this far, then , open up the Spotlight search (Cmd+Space) and type terminal to open up the Mac equivalent of the Windows command prompt.

Type the following, but obviously replace the Xs with the network name.

security find-generic-password -wa XXXX