Display WiFi Passwords for all WiFi Profiles

WiFi profile passwords can be obtained in GUI and here is a PowerShell script to find the Wifi passwords. The script was written by harriha and it is extracted from his GitHub page.

PowerShell Command:

(netsh wlan show profiles) | Select-String ":(.+)$" | %{$name=$_.Matches.Groups[1].Value.Trim(); $_} | %{(netsh wlan show profile name="$name" key=clear)}  | Select-String "Key ContentW+:(.+)$" | %{$pass=$_.Matches.Groups[1].Value.Trim(); $_} | %{[PSCustomObject]@{ PROFILE_NAME=$name;PASSWORD=$pass }} | Format-Table -AutoSize 

wifi password

If PSremoting is enabled in the destination Laptop you can play around with this script 🙂