Wi-Fi Profiles

Manage Wi-Fi configuration profiles on a Windows host.

netsh

List all configured profiles:

netsh wlan show profiles

Display profile configuration (including cleartext PSK):

netsh wlan show profile key=clear name="<PROFILE NAME>"

Omit the name parameter to display all profiles.

Export profile configuration (including cleartext PSK):

netsh wlan export profile key=clear name="<PROFILE NAME>" folder=<C:\path\to\output\>

Omit the name parameter to export all profiles.

Display cleartext PSK of all profiles:

netsh wlan show profiles | sls -Pattern " User Profile" | % { $profile=$_.Line.split(':')[1].trim(); $output=netsh.exe wlan show profiles key=clear name="$profile"; $psk=$output | sls -Pattern "Key Content"; $psk = ($psk -split ":")[-1]; if ($psk -ne $null) { $psk = $psk.Trim() }; echo "$profile -> $psk" }
netsh wlan show profiles | sls -Pattern " User Profile" | % { echo $_.Line.split(':')[1].trim() } | % { netsh wlan show profiles key=clear name=$_ | sls -Pattern "SSID name|Authentication|Key Content"; echo "" }
for /f "tokens=4 delims=: " %a in ('netsh wlan show profiles ^| find "Profile "') do @(netsh wlan show profiles key=clear name=%a | findstr "SSID Authentication Content" | find /v "Number" & echo.)

Tip

Administrator privileges are not required to export profile configuration and cleartext PSK.

Note

RTFM: netsh wlan ?