Created
October 2, 2017 03:33
-
-
Save willjobs/8d78fa8bb5de69b1143da6933761a71f to your computer and use it in GitHub Desktop.
PowerShell script to show all wifi passwords saved in Windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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 |
running win10 19045.2364 and this takes but does absolutely nothing otherwise. any advice?
would also love to see an example of it outputting to a txt or csv file in a directory such as desktop
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Credit: http://blog.jocha.se/tech/display-all-saved-wifi-passwords