0
Install-WindowsFeature -Name AD-Domain-Services -IncludeManagementTools
$AdminPassword = "xxx"
$DomainCredential = Get-Credential
Install-ADDSDomain -NewDomainName "mail" -ParentDomainName "musub.domain.com" -InstallDns -Force -SafeModeAdministratorPassword ($AdminPassword | ConvertTo-SecureString -AsPlainText -Force) -Credential $DomainCredential
The error I am getting is
Install-ADDSDomain : The specified argument 'ChildName' was not recognized. At line:1 char:1 + Install-ADDSDomain -NewDomainName "mail" -ParentDomainName "subdomain ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Install-ADDSDomain], DCPromoExecutionException + FullyQualifiedErrorId : DCPromo.General.77,Microsoft.DirectoryServices.Deployment.PowerShell.Commands.InstallADD SDomainCommand
Message Context RebootRequired Status ------- ------- -------------- ------ The specified argument 'ChildName' was not recognized... DCPromo.General.77 False Error