我正在尝试自动安装与Active Directory到服务器核心框?
我假设我需要设置一个脚本。 任何想法如何去做这个。
如果这是Windows Server 2012,则可以在PowerShell中完成这一切 :
PS:\> Import-Module ServerManager PS:\> Add-WindowsFeature AD-Domain-Services PS:\> Install-ADForest -DomainName corp.contoso.com
如果你在Windows Server 2008 R2中,那么你可以像上面那样安装angular色,但是你可以使用脚本dcpromo进行无人参与的安装:
[DCInstall] InstallDNS=Yes ConfirmGC=Yes NewDomain=forest NewDomainDNSName=corp.contoso.com DomainNetBiosName=CORP ReplicaOrNewDomain=domain ForestLevel=4 DomainLevel=4 DatabasePath="%systemroot%\\ntds" LogPath="%systemroot%\\ntds" SYSVOLPath="%systemroot%\\SYSVOL" SafeModeAdminPassword=C0mpl3xP@ssw0rd! RebootOnCompletion=Yes