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



Leave a Reply 6

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


Imi

Imi

Confirmed.

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

mvilar

mvilar

Yes, I just checked.
The answer is A.
Example:
Add-ADPrincipalGroupMembership -Identity User1 -MemberOf Group1, Group2, Group3

Shahid

Shahid

I think, you are wrong here!

please check this link, the correct answer is G: Set-AdGroup

To modify the Security Accounts Manager (SAM)

The Rename-ADObject cmdlet renames an Active Directory object. This cmdlet sets the Name property of an Active Directory object that has an LDAP Display Name (ldapDisplayName) of name. To modify the given name, surname and other name of a user, use the Set-ADUser cmdlet. To modify the Security Accounts Manager (SAM) account name of a user, computer, or group, use the Set-ADUser, Set-ADComputer, or Set-ADGroup cmdlet.

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