netsh wlan show profiles
netsh wlan show profile name="<SSID>" key=clear
$ErrorActionPreference='SilentlyContinue'; netsh wlan show profiles 2>$null | ?{$_ -match 'Profil'} | %{ $n=($_ -split ':',2)[1].Trim(); $k=(netsh wlan show profile name="$n" key=clear 2>$null | ?{$_ -match 'Contenu|Key Content'}); $p=if($k){($k -split ':',2)[1].Trim()}else{'(aucun)'}; Write-Host -NoNewline $n -ForegroundColor Cyan; Write-Host -NoNewline ' : '; Write-Host $p -ForegroundColor Green }
