diff --git a/WELAVerboseSecAudit.psm1 b/WELAVerboseSecAudit.psm1 index 017f8c0f..f84682c1 100644 --- a/WELAVerboseSecAudit.psm1 +++ b/WELAVerboseSecAudit.psm1 @@ -33,7 +33,7 @@ function ColorPrint { [array]$sub_categories ) - if ($line -eq $category) { + if ($line.Trim() -eq $category.Trim()) { $allEnabled = $true $allDisabled = $true