diff --git a/Private/Invoke-Scans.ps1 b/Private/Invoke-Scans.ps1 index 08c7a51..8e43fd5 100644 --- a/Private/Invoke-Scans.ps1 +++ b/Private/Invoke-Scans.ps1 @@ -136,7 +136,7 @@ function Invoke-Scans { [array]$AllIssues = $AuditingIssues + $ESC1 + $ESC2 + $ESC3 + $ESC4 + $ESC5 + $ESC6 + $ESC8 + $ESC11 + $ESC13 # If these are all empty = no issues found, exit - if ((!$AuditingIssues) -and (!$ESC1) -and (!$ESC2) -and (!$ESC3) -and (!$ESC4) -and (!$ESC5) -and (!$ESC6) -and (!$ESC8) -and ($ESC11) -and ($ESC13) ) { + if ($AllIssues.Count -lt 1) { Write-Host "`n$(Get-Date) : No ADCS issues were found." -ForegroundColor Green break }