To view all the Wi-Fi passwords of networks previously connected to your device using the Command Prompt (CMD) on Windows, you can follow these steps:
To view all the saved Wi-Fi profiles on your computer using Command Prompt, follow these steps:
- Press
Windows Key + Rto open the Run dialog box. - Type
cmdand press Enter.
Alternatively, search for cmd in the Start Menu, right-click on Command Prompt, and choose Run as Administrator for elevated access.
List All Wi-Fi Profiles
Type the following command and press Enter:
netsh wlan show profiles
This command will list all the Wi-Fi networks (profiles) that your device has previously connected to. The output will look something like this:
Step 1: Open Command Prompt
- Press
Windows Key + Rto open the Run dialog. - Type
cmdand pressEnterto open Command Prompt.
Alternatively, you can search for cmd in the Start Menu and right-click on Command Prompt, selecting "Run as Administrator" for elevated permissions.
Step 2: List All Wi-Fi Profiles
To view the saved Wi-Fi profiles (SSIDs) on your device, type the following command and press Enter:
netsh wlan show profiles
This will list all the Wi-Fi networks your computer has connected to in the past.
Step 3: View Password for a Specific Wi-Fi Network
To see the password of a specific Wi-Fi network (replace WiFi-Name with the actual network name from the list you got in Step 2), type this command and press Enter:
netsh wlan show profile name="WiFi-Name" key=clear
For example, if the network name is HomeNetwork, the command would be:
netsh wlan show profile name="HomeNetwork" key=clear
Step 4: Locate the Password in the Output
After running the command, look for the following section in the output:
Key Content : [password]
The value next to Key Content is the Wi-Fi password for that network.
Step 5: Repeat for Other Networks
Repeat Step 3 for each network whose password you want to retrieve.
Example:
- Run
netsh wlan show profilesto list all networks. - If you see
HomeNetworkandOfficeNetwork, run the following to get their passwords:netsh wlan show profile name="HomeNetwork" key=clear netsh wlan show profile name="OfficeNetwork" key=clear
You will see the passwords for each Wi-Fi network listed under Key Content.
Notes:
- You need administrator privileges to view the passwords.
- If the
Key Contentis blank, it means that the password is either not stored or hidden.
This method works on Windows systems with the necessary permissions and will reveal the saved passwords of Wi-Fi networks you've previously connected to.