当我尝试在forest mysite.com上安装域控制器时,这是错误消息。
00domaincontroller.ps1
Import-Module ActiveDirectory
Import-Module ServerManager
Enable-PSRemoting -force
$DCPromoFile =
@"
[DCINSTALL]
UserDomain="mysite.com"
UserName="Administrator"
Password="password1234"
ReplicaOrNewDomain="Replica"
ReplicaDomainDNSName="mysite.com"
DatabasePath="c:\Windows\NTDS"
LogPath="c:\Windows\NTDS"
SYSVOLPath="c:\Windows\SYSVOL"
InstallDNS="Yes"
CriticalReplicationOnly="No"
ConfirmGC="Yes"
SafeModeAdminPassword="password4321"
RebootOnCompletion="Yes"
"@
$DCPromoFile | out-file "c:\folders\dcpromo.ini" -force