Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

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:

C:\PS>Install-ADDSDomain -Credential (Get-Credential CORP\EnterpriseAdmin1) -NewDomainName child -ParentDomainName corp.contoso.com -InstallDNS -CreateDNSDelegation -DomainMode Win2003 -ReplicationSourceDC DC1.corp.contoso.com -SiteName Houston -DatabasePath "D:\NTDS" -SYSVOLPath "D:\SYSVOL" -LogPath "E:\Logs" -NoRebootOnCompletion

Source

share|improve this answer
    
I was wondering why the command ran away without wondering why it didn't have the credentials it needed. –  Andrew J. Brehm Apr 9 '13 at 23:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.