Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
PowerShell script to show all wifi passwords saved in Windows
(netsh wlan show profiles) | Select-String "\:(.+)$" | %{$name=$_.Matches.Groups[1].Value.Trim(); $_} | %{(netsh wlan show profile name="$name" key=clear)} | Select-String "Key Content\W+\:(.+)$" | %{$pass=$_.Matches.Groups[1].Value.Trim(); $_} | %{[PSCustomObject]@{ PROFILE_NAME=$name;PASSWORD=$pass }} | Format-Table -AutoSize
@willjobs
Copy link
Author

willjobs commented Oct 2, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment