1 2 3 4 5 6 |
foreach($perfil in (netsh wlan show profiles) | Select-String "\:(.+)$") { $nombrep = $perfil.Matches.Groups[1].Value.Trim() $nombrep (netsh wlan show profile name="$nombrep" key=clear) | Select-String "Contenido de la clave" } |