Unattend installations of AD Services
dcpromo /unattend:<path of the answer file>
Fields in the "[DCInstall]" section of the answer file specify the details of the installation or removal operation. Thefollowing list provides the common fields that are used for each operation. The default values are used if the option is notspecified. The default values for these fields are described in the "Field definitions" section.
For new forest installations, the following options apply:[DCINSTALL]InstallDNS=yesNewDomain=forestNewDomainDNSName=<The fully qualified Domain Name System (DNS) name>DomainNetBiosName=<By default, the first label of the fully qualified DNS name>SiteName=<Default-First-Site-Name>ReplicaOrNewDomain=domainForestLevel=<The forest functional level number>DomainLevel=<The domain functional level number>DatabasePath="<The path of a folder on a local volume>"LogPath="<The path of a folder on a local volume>"RebootOnCompletion=yesSYSVOLPath="<The path of a folder on a local volume>"SafeModeAdminPassword=<The password for an offline administrator account>
For child domain installations, the following options apply:[DCINSTALL]ParentDomainDNSName=<Fully qualified DNS name of parent domain>UserName=<The administrative account in the parent domain>UserDomain=<The name of the domain of the user account>Password=<The password for the user account> Specify * to prompt the user for credentials during theinstallation.NewDomain=childChildName=<The single-label DNS name of the new domain>SiteName=<The name of the AD DS site in which this domain controller will reside> This site must be created inadvance in the Dssites.msc snap-in.DomainNetBiosName=<The first label of the fully qualified DNS name>