Skip to content

Commit

Permalink
Replace individual issue checks with one simple check.
Browse files Browse the repository at this point in the history
  • Loading branch information
SamErde committed Nov 11, 2024
1 parent fe3ed69 commit 59af8e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Private/Invoke-Scans.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 59af8e6

Please sign in to comment.