step:1 create snipest code :
$Profiles=@()
$Profiles +=(netsh wlan show profiles) | Select-String "\:(.+)$" | Foreach{$_.Matches.Groups[1].Value.Trim()}
$Profiles | Foreach{$SSID = $_ ; (netsh wlan show profile name="$_" key=clear)} |
Select-String "Key Content\W+\:(.+)$" |
Foreach{$pass=$_.Matches.Groups[1].Value.Trim(); $_} |
Foreach{[PSCustomObject]@{Wireless_Network_Name=$SSID;Password=$pass}}
Format-Table -AutoSize
Start-Sleep -s 30
step: 2 save file as extension .ps1
step: 3 right click run with powershell
or:
netsh wlan show profiles "wifi name" key=clear
0 Comments
if you have any doubts , please let me know