Copy the part starting with a semicolon and save it as anser.txt to the root directory of drive C. Open the command to run the local installation Domain Controller command dcpromo.exe/unattend: C: \ anser.txt
The red font must be modified based on your actual needs.
Description of the behavior that begins with a semicolon.
Create the first Domain Controller response file for the new domain in the New Forest.
; Dcpromo unattend file (automatically generated by dcpromo)
; Usage:
; Dcpromo.exe/unattend: C: \ anser.txt
;
[Dcinstall]
; New forest promotion
Create the first domain controller (domain) in the new domain, readonlyreplica for the existing domain, and replica for the existing domain)
Replicaornewdomain = domain
; Specify the type of the new domain, forest (root domain of the New Forest), tree (root domain of the new domain tree), Child (subdomain in the existing forest)
Newdomain = Forest
; Set the DNS domain name, such as mifeihu.cn
Newdomaindnsname = mifeihu.cn
; Forest function level, 0 (Windows2000), 2 (Windows2003), 3 (windows2008)
Forestlevel = 3
Domainnetbiosname = mifeihu
; Domain Function level, 0 (Windows2000), 2 (Windows2003), 3 (windows2008)
Domainlevel = 3
Whether to install the DNS server
Installdns = Yes
; Whether it is a GC Server
Confirmgc = Yes
; Whether to create a delegate domain in the upper layer
Creatednsdelegation = No
Set the storage path of the AD Database
Databasepath = "C: \ WINDOWS \ NTDs"
; Set the log storage path of adds
Logpath = "C: \ WINDOWS \ NTDs"
; Set the path of the sysvol folder
Sysvolpath = "C: \ WINDOWS \ sysvol"
; Set safemodeadminpassword to the correct value prior to using the unattend File
; Directory service recovery mode password
Safemodeadminpassword = aa11.. 00
; Run-Time flags (optional)
; Set Automatic Restart
Rebootoncompletion = Yes
This article is from the "space of the secret Flying Tiger" blog and will not be reposted!
Use the response file to install the Domain Controller