Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save DarkionAvey/0a78f8ca9646540eff2cd95e7ebbf314 to your computer and use it in GitHub Desktop.
Save DarkionAvey/0a78f8ca9646540eff2cd95e7ebbf314 to your computer and use it in GitHub Desktop.
# from https://www.itechtics.com/2-ways-find-saved-wifi-passwords-windows-10/
(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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment