使用應答文件安裝域控制器

複製分號開頭的部分,保存爲 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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章