PrepAway - Latest Free Exam Questions & Answers

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?

PrepAway - Latest Free Exam Questions & Answers

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

One Comment on “Which cmdlet should you run?

  1. Calin says:

    help Add-AdPrincipalGroupMembership -Examples
    C:\PS>Add-ADPrincipalGroupMembership

    cmdlet Add-ADPrincipalGroupMembership at command pipeline position 1
    Supply values for the following parameters:
    Identity: JeffPrice
    MemberOf[0]: RodcAdmins
    MemberOf[1]: Allowed RODC Password Replication Group
    MemberOf[2]:

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




    0



    0

Leave a Reply