New-NetFirewallRule
Crée une règle du pare-feu Windows.
Syntaxe
New-NetFirewallRule -DisplayName nom -Direction Inbound -Protocol TCP -LocalPort N -Action Allow|Block
Exemple
New-NetFirewallRule -DisplayName "Bloquer RDP" -Direction Inbound -Protocol TCP -LocalPort 3389 -Action Block
