From fd4ac6090813832dfe28a818730f5bcc175bbe32 Mon Sep 17 00:00:00 2001 From: henrygd Date: Mon, 14 Apr 2025 17:19:24 -0400 Subject: [PATCH] Remove `-Program` parameter from windows firewall rule (#739) --- supplemental/scripts/install-agent.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supplemental/scripts/install-agent.ps1 b/supplemental/scripts/install-agent.ps1 index 5b5fcf5..4b17840 100644 --- a/supplemental/scripts/install-agent.ps1 +++ b/supplemental/scripts/install-agent.ps1 @@ -148,7 +148,7 @@ try { # Create new rule with current settings Write-Host "Creating firewall rule for beszel-agent on port $Port..." try { - New-NetFirewallRule -DisplayName $ruleName -Direction Inbound -Program $agentPath -Action Allow -Protocol TCP -LocalPort $Port + New-NetFirewallRule -DisplayName $ruleName -Direction Inbound -Action Allow -Protocol TCP -LocalPort $Port Write-Host "Firewall rule created successfully." } catch { Write-Host "Warning: Failed to create firewall rule: $($_.Exception.Message)" -ForegroundColor Yellow