Skip to content

Commit

Permalink
Merge pull request #1 from nanderh/addomain-dnsdelegationfix
Browse files Browse the repository at this point in the history
ADDomain: Fix DNS Delegation issue
  • Loading branch information
nanderh authored Nov 25, 2020
2 parents 87b1308 + a7f0d4f commit 8a30592
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/DSCResources/MSFT_ADDomain/MSFT_ADDomain.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@ function Set-TargetResource
{
$installADDSParameters['DnsDelegationCredential'] = $DnsDelegationCredential
$installADDSParameters['CreateDnsDelegation'] = $true
$installADDSParameters['InstallDns'] = $true
}

if ($PSBoundParameters.ContainsKey('DatabasePath'))
Expand Down Expand Up @@ -523,6 +524,8 @@ function Set-TargetResource
}

Install-ADDSDomain @installADDSParameters

Start-Service -Name "netlogon"

Write-Verbose -Message ($script:localizedData.CreatedChildDomain)
}
Expand All @@ -542,6 +545,8 @@ function Set-TargetResource
}

Install-ADDSForest @installADDSParameters

Start-Service -Name "netlogon"

Write-Verbose -Message ($script:localizedData.CreatedForest -f $DomainName)
}
Expand Down

0 comments on commit 8a30592

Please sign in to comment.