Posted On October 13, 2019

PowerShell: 1-liner to obtain SSID and Password of Wireless Profiles on a Windows Machine

kimconnect 0 comments
blog.KimConnect.com >> Windows >> PowerShell: 1-liner to obtain SSID and Password of Wireless Profiles on a Windows Machine
$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?

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

PowerShell: Enable ISE

Import-Module ServerManager;Add-WindowsFeature PowerShell-ISE

How to Block Distracting Sites Such as Youtube and Hulu on Your Home Network

Overview: - You send a voice command 'block youtube' to Alexa, an Amazon personal assistant…

Find Empty Directories

$directories="\\FILESERVER01\SHARE01" # Dynamic Credential method 1 $who = whoami if ($who.substring($who.length-2, 2) -eq "-admin"){$username=$who;} else…
Other project: DragonCoin.com