$profileName='Frontier0000'
netsh wlan show profile "name=$profileName" key=clear|select-string "Key Content"
# Sample output
Key Content : somepassword
PS C:\Windows\system32> netsh.exe wlan show profiles name=* key=clear | select-string -Pattern "(SSID Name|Key Content)"
SSID name : "CiscoGear"
Key Content : The-Password-Is-Password
SSID name : "Wireless"
Key Content : What-Password?
Categories: