I successfully installed this forest:
Install-ADDSForest ` -DomainName "mysite.com" ` ... -NoRebootOnCompletion
I tried to install this domaincontroller:
Import-Module ADDSDeployment Install-ADDSDomainController ` -DomainName "mysite.com" ` -CreateDnsDelegation ` -AllowDomainControllerReinstall ` -InstallDns ` -NoRebootOnCompletion
I got this error code:
Verification of user credential permissions failed. An Active Directory domain controller for the domain "mysite.com" could not be contacted. Ensure that you supplied the correct DNS domain name.
I tried adding -Credential $credentials with :
$Username = "Administrator" $SecurePassword = ConvertTo-SecureString "@#PaSsWoRd" -Asplaintext -Force $credentials = New-Object System.Management.Automation.PSCredential($Username, $SecurePassword)Still the same error.