Child domain works great, but I cannot create a tree in an existing forest with the ADDomain Resource
Verbose logs
PowerShell DSC resource MSFT_ADDomain failed to execute Set-TargetResource functionality with error message: The
running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop:
Verification of prerequisites for Domain Controller promotion failed. The child domain name "onpremisestree.local" has
an invalid format. This name may contain letters, numbers, and hyphens, but not spaces or periods.
Characters that are not allowed include: ! " # $ % & ( ) * + , ' / : ; < = > ? @ [ \ ] ^ ` { | } ~
+ CategoryInfo : InvalidOperation: (:) [], CimException
+ FullyQualifiedErrorId : ProviderOperationExecutionFailure
+ PSComputerName : LocalHost
Name Version Path
---- ------- ----
ActiveDirectoryDsc 6.0.1 C:\Program Files\WindowsPowerShell\Modules\ActiveDirectoryDsc\6.0.1\ActiveDirectoryDsc.psd1
Problem description
Child domain works great, but I cannot create a tree in an existing forest with the ADDomain Resource
Verbose logs
DSC configuration
Suggested solution
Add "TreeDomain" as an options to install a domain into an exiting resource
https://github.com/dsccommunity/ActiveDirectoryDsc/blob/main/source/DSCResources/MSFT_ADDomain/MSFT_ADDomain.psm1#L477
Operating system the target node is running
PowerShell version and build the target node is running
ActiveDirectoryDsc version