命令行安装额外域控制器,具体的参数参见http://mifeihu.blog.51cto.com/2060590/1565830,两者参数意义相同。红色部分需要根据需要进行修改。


dcpromo.exe  /unattend  /ReplicaOrNewDomain:Domain /NewDomain:Forest /NewDomainDNSName:mifeihu.cn /ForestLevel:3 /DomainLevel:3 /InstallDNS:Yes /ConfirmGc:Yes /CreateDNSDelegation:No /DatabasePath:"%systemroot%\NTDS"  /LogPath:"%systemroot%\NTDS"  /SYSVOLPath:"%systemroot%\SYSVOL"  /SafeModeAdminPassword:aa11..00  /RebootOnCompletion:Yes