How to find out WI-FI Passwords through Command Prompt
- Jack Davies
- Jan 15
- 1 min read
Why would you want to do this?
Finding Wi-Fi passwords through Command Prompt (CMD) can be useful for troubleshooting or recovering forgotten credentials. If you've connected to a network before and need to reconnect without remembering the password, CMD can display the stored password securely, helping in such situations.
How do you do this?
Open a command prompt session as an administrator
Next type the below:
netsh

Now type in the below to see all of your WLAN profiles
wlan show profile

You now need to type in the below to get all of the required information on the SSID
wlan show profile "Example" key=clear

Alternatively, type in the below to get all of the passwords for all of your SSIDs listed in 'wlan show profile'
@for /f tokens^=2delims^=^: %i in ('netsh wlan show profiles')do @set "_ssid=%~i" && @for /f tokens^=2delims^=: %I in ('cmd/v/c netsh wlan show profiles "!_ssid:~1!" key^=clear^|findstr /vi "absent"^|findstr "Key"')do @echo/%i: %I
Comments