diff --git a/WELA.ps1 b/WELA.ps1 index c0691a5c..bc7fc4ee 100755 --- a/WELA.ps1 +++ b/WELA.ps1 @@ -1812,7 +1812,7 @@ foreach ( $LogFile in $evtxFiles ) { } } -if ($ruleStack) { +if ($ruleStack.Count -ne 0) { foreach ($LogFile in $evtxFiles) { $WineventFilter = @{} $WineventFilter.Add( "Path", $LogFile )