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 three global security groups named Group1,
Group2 and, Group3.
You need to add User1 to Group1, Group2, and Group3.
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 three global security groups named Group1,
Group2 and, Group3.
You need to add User1 to Group1, Group2, and Group3.
Which cmdlet should you run?

A.
Add-AdPrincipalGroupMembership

B.
Install-AddsDomainControllcr

C.
Install-WindowsFeature

D.
Install-AddsDomain

E.
Rename-AdObject

F.
Set-AdAccountControl

G.
Set-AdGroup

H.
Set-User

Explanation:
The Add-ADPrincipalGroupMembership cmdlet adds a user, group, service account, or
computer as a new member to one or more Active Directory groups.
References:
http://technet.microsoft.com/en-us/library/ee617203.aspx
http://technet.microsoft.com/en-us/library/hh974723.aspx



Leave a Reply 1

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


gbj

gbj

A
PS C:\Users\Administrator> Add-ADPrincipalGroupMembership

cmdlet Add-ADPrincipalGroupMembership at command pipeline position 1
Supply values for the following parameters:
Identity: name
MemberOf[0]: g1
MemberOf[1]: g2
MemberOf[2]: g3