@@ -23,7 +23,7 @@ function Invoke-Scans {
23
23
24
24
. NOTES
25
25
- The script requires the following functions to be defined: Find-AuditingIssue, Find-ESC1, Find-ESC2, Find-ESC3Condition1,
26
- Find-ESC3Condition2, Find-ESC4, Find-ESC5, Find-ESC6, Find-ESC8, Find-ESC8 .
26
+ Find-ESC3Condition2, Find-ESC4, Find-ESC5, Find-ESC6, Find-ESC8, Find-ESC11 .
27
27
- The script uses Out-GridView or Out-ConsoleGridView for interactive selection when the 'PromptMe' scan option is chosen.
28
28
- The script returns a hash table containing the results of the scans.
29
29
@@ -113,9 +113,9 @@ function Invoke-Scans {
113
113
Write-Host ' Identifying HTTP-based certificate enrollment interfaces (ESC8)...'
114
114
[array ]$ESC8 = Find-ESC8 - ADCSObjects $ADCSObjects
115
115
}
116
- ESC6 {
116
+ ESC11 {
117
117
Write-Host ' Identifying Issuing CAs with IF_ENFORCEENCRYPTICERTREQUEST disabled (ESC11)...'
118
- [array ]$ESC6 = Find-ESC6 - ADCSObjects $ADCSObjects
118
+ [array ]$ESC11 = Find-ESC11 - ADCSObjects $ADCSObjects
119
119
}
120
120
All {
121
121
Write-Host ' Identifying auditing issues...'
@@ -144,7 +144,7 @@ function Invoke-Scans {
144
144
[array ]$AllIssues = $AuditingIssues + $ESC1 + $ESC2 + $ESC3 + $ESC4 + $ESC5 + $ESC6 + $ESC8 + $ESC11
145
145
146
146
# If these are all empty = no issues found, exit
147
- if ((! $AuditingIssues ) -and (! $ESC1 ) -and (! $ESC2 ) -and (! $ESC3 ) -and (! $ESC4 ) -and (! $ESC5 ) -and (! $ESC6 ) -and (! $ESC8 ) -and ($ESC11 ) ) {
147
+ if ((! $AuditingIssues ) -and (! $ESC1 ) -and (! $ESC2 ) -and (! $ESC3 ) -and (! $ESC4 ) -and (! $ESC5 ) -and (! $ESC6 ) -and (! $ESC8 ) -and (! $ESC11 ) ) {
148
148
Write-Host " `n $ ( Get-Date ) : No ADCS issues were found." - ForegroundColor Green
149
149
break
150
150
}
0 commit comments