複制分号開頭的部分,儲存為 anser.txt存放到C槽的根目錄下,打開指令提示符運作帶參數的安裝域控制器指令dcpromo.exe /unattend:C:\anser.txt
其中紅色字型為需要根據自己的實際需求進行修改部分。
分号開頭的行為注釋說明部分。
;建立新林中新域的第一台域控制器應答檔案。
;DCPROMO unattend file (automatically generated by dcpromo)
; Usage:
; dcpromo.exe /unattend:C:\anser.txt
;
[DCInstall]
; New forest promotion
;建立新域中的第一台域控制器(Domain),現有域的隻讀域控制器(ReadOnlyReplica),現有域的其他域控制器(Replica)
ReplicaOrNewDomain=Domain
;指定新域的種類,Forest(新林的根域),Tree(新域樹的根域),Child(現有林中的子域)
NewDomain=Forest
;設定DNS域名,如mifeihu.cn
NewDomainDNSName=mifeihu.cn
;林功能級别,0(Windows2000),2(Windows2003),3(Windows2008)
ForestLevel=3
DomainNetbiosName=MIFEIHU
;域功能級别,0(Windows2000),2(Windows2003),3(Windows2008)
DomainLevel=3
;是否安裝DNS伺服器
InstallDNS=Yes
;是否是GC伺服器
ConfirmGc=Yes
;是否要在上層建立委派域
CreateDNSDelegation=No
;設定AD資料庫的存儲路徑
DatabasePath="C:\Windows\NTDS"
;設定ADDS的日志存儲路徑
LogPath="C:\Windows\NTDS"
;設定SYSVOL檔案夾的路徑
SYSVOLPath="C:\Windows\SYSVOL"
; Set SafeModeAdminPassword to the correct value prior to using the unattend file
;目錄服務還原模式密碼
SafeModeAdminPassword=aa11..00
; Run-time flags (optional)
;設定自動重新啟動
RebootOnCompletion=Yes
本文轉自秘飛虎51CTO部落格,原文連結:http://blog.51cto.com/mifeihu/1565830 ,如需轉載請自行聯系原作者