From 51967f4a30ac597100337052aeddd2e106279fea Mon Sep 17 00:00:00 2001 From: Ryan Conrad Date: Mon, 4 Jun 2018 08:38:38 -0700 Subject: [PATCH] Fixed bug that was preventing firewall rules from being deleted. Signed-off-by: Ryan Conrad --- LoginMonitor.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LoginMonitor.ps1 b/LoginMonitor.ps1 index c99463c..59d12e6 100644 --- a/LoginMonitor.ps1 +++ b/LoginMonitor.ps1 @@ -89,7 +89,7 @@ function Delete-BlockRule } else { - $null = Remove-NetFirewallRule -Name $RuleName + netsh advfirewall firewall delete rule name=$RuleName dir=in } }