3 lines
472 B
PowerShell
3 lines
472 B
PowerShell
|
# Query Windows 10 Saved SSID details outputs the WIFI name and password.
|
||
|
# Created by TechCentre with the help and assistance of the internet
|
||
|
(netsh wlan show profiles) | Select-String "\:(.+)$" | %{$name=$_.Matches.Groups[1].Value.Trim(); $_} | %{(netsh wlan show profile name="$name" key=clear)} | Select-String "Key Content\W+\:(.+)$" | %{$pass=$_.Matches.Groups[1].Value.Trim(); $_} | %{[PSCustomObject]@{ PROFILE_NAME=$name;PASSWORD=$pass }} | Format-Table -AutoSize
|