From a7f0d4fee586addf2ed45a1c46f74d86d943ad2d Mon Sep 17 00:00:00 2001 From: Nander Date: Wed, 25 Nov 2020 18:00:19 +0100 Subject: [PATCH] Update MSFT_ADDomain.psm1 Added fix for issue #176 , DNS Delegation not included in ADDomain. And incorporated fix from https://github.com/ansible/ansible/issues/39235 --- source/DSCResources/MSFT_ADDomain/MSFT_ADDomain.psm1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/DSCResources/MSFT_ADDomain/MSFT_ADDomain.psm1 b/source/DSCResources/MSFT_ADDomain/MSFT_ADDomain.psm1 index 4cced2638..83e530fc8 100644 --- a/source/DSCResources/MSFT_ADDomain/MSFT_ADDomain.psm1 +++ b/source/DSCResources/MSFT_ADDomain/MSFT_ADDomain.psm1 @@ -487,6 +487,7 @@ function Set-TargetResource { $installADDSParameters['DnsDelegationCredential'] = $DnsDelegationCredential $installADDSParameters['CreateDnsDelegation'] = $true + $installADDSParameters['InstallDns'] = $true } if ($PSBoundParameters.ContainsKey('DatabasePath')) @@ -523,6 +524,8 @@ function Set-TargetResource } Install-ADDSDomain @installADDSParameters + + Start-Service -Name "netlogon" Write-Verbose -Message ($script:localizedData.CreatedChildDomain) } @@ -542,6 +545,8 @@ function Set-TargetResource } Install-ADDSForest @installADDSParameters + + Start-Service -Name "netlogon" Write-Verbose -Message ($script:localizedData.CreatedForest -f $DomainName) }