Last active
August 20, 2024 12:14
-
-
Save tascrafts/04b2b7d3cea582fe903e490ce6fa56ac to your computer and use it in GitHub Desktop.
Lists all saved wi-fi networks and passwords on Windows 10
This file contains 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 | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment