diff --git a/WELA.ps1 b/WELA.ps1 index ea8ccd10..c4c19a85 100644 --- a/WELA.ps1 +++ b/WELA.ps1 @@ -1014,7 +1014,7 @@ function AuditLogSetting { $_ | Add-Member -MemberType NoteProperty -Name TotalRuleByLevel -Value "" $ruleCounts = "" foreach ($level in [WELA]::Levels) { - $count = $this.RulesCount[$level] + $count = $_.RulesCount[$level] if ($level -eq "informational") { $ruleCounts += "info:$count" } else { @@ -1032,7 +1032,7 @@ function AuditLogSetting { $_ | Add-Member -MemberType NoteProperty -Name TotalRuleByLevel -Value "" $ruleCounts = "" foreach ($level in [WELA]::Levels) { - $count = $this.RulesCount[$level] + $count = $_.RulesCount[$level] if ($level -eq "informational") { $ruleCounts += "info:$count" } else {