Hi,
I have the following scripts running.
Basically both scripts create files at runtime, and then the servers restart and run the newly created files, however there is an error when the child DC joins the forest, even though it joins successfully.
Scripts uploaded in the links below as the forum wouldn't allow characters more than60000 (mine is ~6095)
Error (Even though the child DC joins Forest successfully)
At C:\Users\Administrator\Desktop\JoinForest.ps1:9 char:1+ Install-ADDSDomain -credential $cred -CreateDnsDelegation:$true -Data ...+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo : NotSpecified: (:) [Install-ADDSDomain], TestFailedException+ FullyQualifiedErrorId : Test.VerifyDcPromoCore.DCPromo.General.77,Microsoft.DirectoryServices.Deployment.PowerShell.Commands.InstallADDSDomainCommand
Message : Verification of prerequisites for Domain Controller promotion failed. The specified argument 'ChildName' was not recognized.
Context : Test.VerifyDcPromoCore.DCPromo.General.77
RebootRequired : False
Status : Error