Ejercicios de PowerShell: mostrar información sobre las reglas del Firewall de Windows con PowerShell

$f = New-object -comObject HNetCfg.FwPolicy2
$f.Rules | Select-Object name,applicationname,localports,remoteports | Out-GridView