diff --git a/WELA.ps1 b/WELA.ps1 index 236e8328..27ef9d01 100644 --- a/WELA.ps1 +++ b/WELA.ps1 @@ -71,7 +71,7 @@ foreach ($level in [WELA]::Levels) { $count = $this.RulesCount[$level] if ($level -eq "informational") { - $ruleCounts += "info:$($count)" + $ruleCounts += "info:$([string]$count)" } else { $ruleCounts += "$($level):$($count), " } @@ -1016,7 +1016,7 @@ function AuditLogSetting { foreach ($level in [WELA]::Levels) { $count = $_.RulesCount[$level] if ($level -eq "informational") { - $ruleCounts += "info:$($count)" + $ruleCounts += "info:$([string]$count)" } else { $ruleCounts += "$($level):$($count), " } @@ -1034,7 +1034,7 @@ function AuditLogSetting { foreach ($level in [WELA]::Levels) { $count = $_.RulesCount[$level] if ($level -eq "informational") { - $ruleCounts += "info:$($count)" + $ruleCounts += "info:$([string]$count)" } else { $ruleCounts += "$($level):$($count), " }