how to find wifi password windows 10 using powershell

how to find wifi password windows 10 using powershell
to find a wifi password on windows without third-party software,run following line of code on powershell window. to do this, right-click filename (.ps1) run as powershell

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

Post a Comment

0 Comments