To install the first domain controller in the new forest by using an answer file
1. Copy and save the following code as a TXT file
; The first domain controller answer file
[DCInstall]
Replicaornewdomain=domain
Newdomain=forest
Newdomaindnsname=contoso.local
Forestlevel=4
Domainnetbiosname=contoso
Domainlevel=4
Installdns=yes
; CONFIRMGC This parameter is required for the first domain controller in the deployment forest Yes
Confirmgc=yes
Creatednsdelegation=no
Databasepath= "C:\Windows\NTDS"
Logpath= "C:\Windows\NTDS"
Sysvolpath= "C:\Windows\SYSVOL"
[Email protected]
Rebootoncompletion=yes
2. Parameter interpretation
installdns
newdomaindnsname
domainnetbiosname
replicaornewdomain
forestlevel
domainlevel
creatednsdelegation
Serial number |
Parameter values |
Description |
Parameter values |
1 | TD width= "157" valign= "top" >
If the DNS server is installed |
|
2 |
newdomain |
Specify the kind of new domain |
|
3 | TD width= "157" valign= "top" >
set DNS domain name |
|
4 | TD width= "157" valign= "top" >
|
such as Contoso |
5 | TD width= "157" valign= "top" >
|
|
6 | TD width= "157" valign= "top" >
forest functional level |
0 (Windows 2000), 2 (Windows 2003), 3 (Windows 2008), 4 (Windows R2) |
7 | TD width= "157" valign= "top" >
|
0 (Windows 2000), 2 (Windows 2003), 3 (Windows 2008), 4 (Windows R2) |
8 | TD width= "157" valign= "top" >
|
|
9 |
DatabasePath |
Set the AD DS database storage path |
such as C:\windows\NTDS or%systemroot%\NTDS |
logpath
sysvolpath
safemodeadminpassword
10 | TD width= "Valign=" "Top" >
set ad Storage path for DS record files |
such as C:\windows\NTDS or%systemroot%\NTDS |
11 | TD width= "Valign=" "Top" >
Set the path to the Sysvol folder |
|
12 | TD width= "Valign=" "Top" >
|
random but not empty |
13 |
Rebootoncompletion |
Whether to restart the computer after the installation is complete |
Yes or no |
3. View AD DS Server information
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/83/9A/wKiom1d3oi2xZFNUAADhHGppmnc289.jpg-wh_500x0-wm_3 -wmp_4-s_1077359556.jpg "style=" Float:none; "title=" 2016-07-02_18-30-49.jpg "alt=" Wkiom1d3oi2xzfnuaadhhgppmnc289.jpg-wh_50 "/>
4. Check TXT file information
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/83/9A/wKiom1d3oi3CBI4VAAC6tFnka9s031.jpg-wh_500x0-wm_3 -wmp_4-s_3279843511.jpg "style=" Float:none; "title=" 2016-07-02_19-04-57.jpg "alt=" Wkiom1d3oi3cbi4vaac6tfnka9s031.jpg-wh_50 "/>
5. Run cmd on the AD DS server
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/83/98/wKioL1d3oi2zHzxrAABCtMeHuDY941.jpg-wh_500x0-wm_3 -wmp_4-s_1259972758.jpg "style=" Float:none; "title=" 2016-07-02_19-05-34.jpg "alt=" Wkiol1d3oi2zhzxraabctmehudy941.jpg-wh_50 "/>
6. Enter "Dcpromo/unattend:" C:\Install.txt ""
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/83/98/wKioL1d3oi7zY3KEAADXLt90bf0078.jpg-wh_500x0-wm_3 -wmp_4-s_1993432081.jpg "style=" Float:none; "title=" 2016-07-02_19-06-31.jpg "alt=" Wkiol1d3oi7zy3keaadxlt90bf0078.jpg-wh_50 "/>
7. Wait for the server to restart
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/83/9A/wKiom1d3oi6zPyGnAADPrCuu0H0185.jpg-wh_500x0-wm_3 -wmp_4-s_2504554209.jpg "style=" Float:none; "title=" 2016-07-02_19-08-28.jpg "alt=" Wkiom1d3oi6zpygnaadprcuu0h0185.jpg-wh_50 "/>
8. After the reboot is complete, check the service
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/83/9A/wKiom1d3oi-iTj7oAAFTOLd2DYw095.jpg-wh_500x0-wm_3 -wmp_4-s_2585698818.jpg "style=" Float:none; "title=" 2016-07-02_19-12-26.jpg "alt=" Wkiom1d3oi-itj7oaaftold2dyw095.jpg-wh_50 "/>
Installing the AD DS server with an answer file is complete.
This article is from the "Lizm" blog, make sure to keep this source http://lizmfinder.blog.51cto.com/6421311/1795188
Windows Server R2 AD DS build (Answer file)