In an isolated test environment, you deploy a server named Server1 that runs a Server Core
Installation of Windows Server 2012 R2. The test environment does not have Active Directory
Domain Services (AD DS) installed.
You install the Active Directory Domain Services server role on Server1.
You need to configure Server1 as a domain controller.
Which cmdlet should you run?

A.
Install-ADDSDomain
B.
Install-ADDSForest
C.
Install-ADDSDomainController
D.
Install-WindowsFeature
Explanation:
Install-ADDSDomainController Installs a domain controller in Active Directory. Install-ADDSDomain
Installs a new Active Directory domain configuration. Install-ADDSForest Installs a new Active
Directory forest configuration. Install-WindowsFeature Installs one or more Windows Server roles,
role services, or features on either thelocal or a specified remote server that is running Windows
Server 2012 R2. This cmdlet is equivalent to andreplaces Add-WindowsFeature, the cmdlet that was
used to install roles, role services, and features.
C:\PS>Install-ADDSForest -DomainName corp.contoso.com -CreateDNSDelegation DomainMode
Win2008 -ForestMode Win2008R2 -DatabasePath “d:\NTDS” -SysvolPath “d:\SYSVOL” –LogPath
“e:\Logs”Installs a new forest named corp.contoso.com, creates a DNS delegation in the
contoso.com domain, setsdomain functional level to Windows Server 2008 R2 and sets forest
functional level to Windows Server 2008,installs the Active Directory database and SYSVOL on the
D:\ drive, installs the log files on the E:\ drive andhas the server automatically restart after AD DS
installation is complete and prompts the user to provide
andconfirm the Directory Services Restore Mode (DSRM) password.
http://technet.microsoft.com/en-us/library/hh974720%28v=wps.620%29.aspx
Install-ADDSForest Install first domain controller in new forest
Install-ADDSDomainController Install additional domain controller in domain
0
0
D. is the answer – Install-windowsfeature -name AD-Domain-Services –IncludeManagementTools. Remember that server core is stripped down with next to nothing installed. You need to add in almost every role or feature. Definitely, for AD, you have to add it 1st. See:
https://technet.microsoft.com/en-us/library/jj574166.aspx
https://www.petri.com/windows-server-2012-as-domain-controller
0
0
Answer D, tested it in my lab.
0
0
I just tested on a newly installed 2012R2 Core server. Install-ADDSForest is not recognized as the name of a cmdlet.
Whereas, I am able to install AD with Install-WindowsFeature
So D has to be the answer.
0
0
Oops. Just reread the question.
“You install the Active Directory Domain Services server role on Server1.”
Which means Install-WindowsFeature AD-Domain-Services –IncludeManagementTools has already been run.
Now:
You need to configure Server1 as a domain controller.
So you now have to run Install-ADDSForest
We are back at B being correct.
0
0