creation of subdomain called mail using powershell

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

Nate

Posted 2019-09-11T11:21:55.443

Reputation: 125

No answers