Skip to content

Instantly share code, notes, and snippets.

@laemmy
Last active March 15, 2018 18:41
Show Gist options
  • Save laemmy/168bb59a44e9272b33ec8ad1b8c70c47 to your computer and use it in GitHub Desktop.
Save laemmy/168bb59a44e9272b33ec8ad1b8c70c47 to your computer and use it in GitHub Desktop.
WPA2 Key via Powershell auslesen und auflisten
(netsh wlan show profiles) | Select-String "\:(.+)$" | %{$name=$_.Matches.Groups[1].Value.Trim(); $_} | %{(netsh wlan show profile name="$name" key=clear)} | Select-String "Schlüsselinhalt\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