diff --git a/cleanW10.ps1 b/cleanW10.ps1 index 9206291..46bc3ba 100755 --- a/cleanW10.ps1 +++ b/cleanW10.ps1 @@ -73,7 +73,7 @@ function FwBlockOutputIP { } else { Try { - New-NetFirewallRule -Name Blacklist_$($params.ip) -DisplayName "BlackList $($params.ip)" -Protocol any -Enabled True -Profile Any -RemoteAddress $params.ip -Action Block | Out-Null + New-NetFirewallRule -Name Blacklist_$($params.ip) -DisplayName "BlackList $($params.ip)" -Direction Outbound -Protocol any -Enabled True -Profile Any -RemoteAddress $params.ip -Action Block | Out-Null } Catch { Write-Host -ForegroundColor Red "error"