Windows firewall i Powershell

  • New-NetFirewallRule -DisplayName "BlokirajOut443" -Direction outbound -Profile Any -Action Block -RemotePort 443,567-678 -Protocol TCP -Program C:\Windows\Notepad.exe
  • Remove-NetFirewallRule -DisplayName "BlokirajOut443"

pwsh ps xpwsh xps firewall xfirewall fw xfw cli xcli

image_pdfimage_print