Skip to content

Commit 667ff38

Browse files
authored
Merge pull request #227 from brokenvhs/testing
Bugfix for ESC8 Check
2 parents e162e3a + 04b6670 commit 667ff38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Private/Set-AdditionalCAProperty.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
)
3737

3838
begin {
39-
$CAEnrollmentEndpoint = @()
4039
if (-not ([System.Management.Automation.PSTypeName]'TrustAllCertsPolicy') ) {
4140
if ($PSVersionTable.PSEdition -eq 'Desktop') {
4241
$code = @"
@@ -69,6 +68,7 @@
6968

7069
process {
7170
$ADCSObjects | Where-Object objectClass -Match 'pKIEnrollmentService' | ForEach-Object {
71+
$CAEnrollmentEndpoint = @()
7272
#[array]$CAEnrollmentEndpoint = $_.'msPKI-Enrollment-Servers' | Select-String 'http.*' | ForEach-Object { $_.Matches[0].Value }
7373
foreach ($directory in @("certsrv/", "$($_.Name)_CES_Kerberos/service.svc", "$($_.Name)_CES_Kerberos/service.svc/CES", "ADPolicyProvider_CEP_Kerberos/service.svc", "certsrv/mscep/")) {
7474
$URL = "://$($_.dNSHostName)/$directory"

0 commit comments

Comments
 (0)