2013-04-04

Windows DC answer file (自動應答檔)


Windows DC answer file (自動應答檔)


用記事本編輯好後,存成 txt ( e.g., autoanswer.txt )  放在 C:\Documents and Settings\Administrator 的路徑下

[DCInstall]
AllowAnonymousAccess = No
AutoConfigDNS = YES
DatabasePath=%SYSTEMROOT%\NTDS
DNSOnNetwork = NO
DomainNetBiosName = info
LogPath=%SYSTEMROOT%\NTDS
NewDomain = Forest
NewDomainDNSName=info.corp
RebootOnSuccess=YES
RemoveApplicationPartitions=NO
SafeModeAdminPassword=67890
SysVolPath=%SYSTEMROOT%\sysvol
TreeOrChild=Tree
UserName=administrator
Password=12345
UserDomain=info.corp
ReplicaOrNewDomain=Domain

新建一個新的樹系中的網域樹狀目錄 ( domain tree ),且根網域為 info.corp
擁有創建網域的帳號為 administrator, 密碼:12345  目錄還原模式密碼:67890

當欲將伺服器升級為 網域控制站 時 可以用這個參數讓系統自動升級為網域控制站 ( DC )

dcpormo /answer:autoanswer.txt