PowerShell (administrateur)
Get-NetFirewallProfile | Select-Object Name, Enabled
New-NetFirewallRule -DisplayName 'Serveur Minecraft' -Direction Inbound -Protocol TCP -LocalPort 25565 -Profile Private -Action Allow
New-NetFirewallRule -DisplayName 'Bloquer app' -Direction Outbound -Program 'C:\…\app.exe' -Action Block
Get-NetFirewallRule -DisplayName 'Serveur*' | Remove-NetFirewallRule
netsh
netsh advfirewall firewall add rule name="Minecraft" dir=in action=allow protocol=TCP localport=25565 profile=private
netsh advfirewall firewall delete rule name="Minecraft"Graphique : pare-feu Windows. Tester : Test-NetConnection.