Skip to content

Instantly share code, notes, and snippets.

@Zobber
Created April 12, 2020 22:34
Show Gist options
  • Save Zobber/c625982ce2710404796fa1b8bdb791c6 to your computer and use it in GitHub Desktop.
Save Zobber/c625982ce2710404796fa1b8bdb791c6 to your computer and use it in GitHub Desktop.
$a = netsh.exe wlan show profiles | Select-String -Pattern ": "; For ($i=1; $i -le $a.length * 2; $i+=2){ $b = ($a -split "`t" -split ": ")[$i]; $c = netsh.exe wlan show profile name=$b key=clear | Select-String -Pattern "clave "; "Red: " + $b + $c}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment