Which cmdlet should you run?

Your network contains an Active Directory forest named contoso.com. The forest contains a single domain. The
domain contains two domain controllers named DC1 and DC2 that run Windows Server 2012 R2.
The domain contains a user named User1 and a global security group named Group1.
You reconfigure DC2 as a member server in the domain.
You need to add DC2 as the first domain controller in a new domain in the forest.
Which cmdlet should you run?

Your network contains an Active Directory forest named contoso.com. The forest contains a single domain. The
domain contains two domain controllers named DC1 and DC2 that run Windows Server 2012 R2.
The domain contains a user named User1 and a global security group named Group1.
You reconfigure DC2 as a member server in the domain.
You need to add DC2 as the first domain controller in a new domain in the forest.
Which cmdlet should you run?

A.
Add-AdPrincipalGroupMembership

B.
Install-AddsDomainController

C.
Install-WindowsFeature

D.
Install-AddsDomain

E.
Rename AdObject

F.
Set AdAccountControl

G.
Set-AdGroup

H.
Set-User

Explanation:
Installs a new Active Directory domain configuration
C:\\PS>Install-ADDSDomain -Credential (Get-Credential CORP\\EnterpriseAdmin1) -NewDomainName child –
ParentDomainName corp.contoso.com -InstallDNS -CreateDNSDelegation -DomainMode Win2003 –
ReplicationSourceDC DC1.corp.contoso.com -SiteName Houston -DatabasePath “D:\\NTDS” SYSVOLPath “D:
\\SYSVOL” -LogPath
“E:\\Logs” NoRebootOnCompletion

http://technet.microsoft.com/en-us/library/hh974722.aspx



Leave a Reply 1

Your email address will not be published. Required fields are marked *


t

t

Senario
Create a new forest
Create a new domain on existing forest
Add a new domain controller

Step 1:
Run install-windowsfeature to install ADDS

Step 2:Choose your route:
Install-ADDSForest – Creates a new forest.
Install-ADDSDomain – Creates a new domain in an existing forest.
Install-ADDSDomainController – Creates a new domain controller in an existing domain.

——————
question asks to create ‘a first domain controller’ in a ‘new domain’.
I think the route you choose should be the second one, install-addsdomain. Then this will take care of creating a new child domain and promoting the DC2 as a first DC in the new domain.
It says, ‘reconfigured as member server’ which means it’s just reconfigured, but didn’t remove ADDS from the previous DC2 state.So it already has ADDS role installed. So you skip step 1 and run install-addsdomain.