I have a domain ludwig.example.com and am trying to create a domain amadeus.example.com using install-addsdomain.
I am running this command:
install-addsdomain -newdomainname amadeus.example.com -parentdomainname ludwig.example.com -domaintype treedomain
I am running this as a local administrator and was a bit surprised I didn't get any errors regarding access denied on the ludwig domain I thought the command would have to contact.
In fact the command just tells me that there are a few DNS-related warnings and never terminates. The server remains outside any domains.
What am I doing wrong?
You want to use the
-Credential (Get-Credential CORP\EnterpriseAdmin)
to supply the parent domain enterprise administrator credentials before the-newdomainname amadeus.example.com -parentdomainname ludwig.example.com -domaintype treedomain
Here is the full example from Microsoft:
Source