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-AddsDomainController

C.
Install-WindowsFeature

D.
Install-AddsDomain

E.
Rename-AdObject

F.
Set-AdAccountControl

G.
Set-AdGroup

H.
Set-User

Explanation:
The Add-ADPrincipalGroupMembershipcmdlet 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 2

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

16 + seventeen =


luischavez714

luischavez714

is A
The Add-ADPrincipalGroupMembership cmdlet adds a user, group, service account, or computer as a new member to one or more Active Directory groups.

luischavez714

luischavez714

=> Add-ADPrincipalGroupMembership -Identity User1 -MemberOf Group1,Group2,Group3