View difference between Paste ID: DTV4dKsq and 1aHU6P4W
SHOW: | | - or go back to the newest paste.
1
Clear-Host
2
$WifiInfo=(netsh wlan show profiles)|SLS "\:(.+)$"|%{$SSID=$_.Matches.Groups[1].Value.Trim(); $_}|
3
    %{(netsh wlan show profile name="$SSID" key=clear)}|SLS "Conte.*:(.+)$"|
4
        %{$pass=$_.Matches.Groups[1].Value.Trim(); $_}|
5
            %{[PSCustomObject]@{SSID=$SSID;PASSWORD=$pass}}
6
$WifiInfo | FT -AutoSize
7
$WifiInfo | ConvertTo-Json
8-
$WifiInfo | Out-GridView -Title "Wifi Passwords Recovery"
8+
$WifiInfo | Out-GridView -Title "Recuperacion de contraseñas Wifi"