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 need to modify the SAM account name of Group1.
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 need to modify the SAM account name of Group1.
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 to Cribb Cancel reply8

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

twenty − 15 =


Leanne

Leanne

E

Josh

Josh

!!!???
to modify group name : G. Set-AdGroup

Alex

Alex

Set-ADGroup – Manage group membership, modify the SAM settings
Set-ADComputer – modify the SAM settings
Set-ADUser – Modify the SAM settings of a user

Remember these and you won’t screw up 🙂

Drifter

Drifter

E and G will both work,but E is much easier
this can be used to rename a bunch of groups at once
Get-QADGroup -Name GLO_TEST_R* | %{Rename-QADObject $_ -newName ($_.name -replace “TEST”,”TST”) | Set-QADGroup -samAccountName ($_.name -replace “TEST”,”TST”)}

Rename-ADObject -Identity “CN=HQ,CN=Sites,CN=Configuration,DC=FABRIKAM,DC=COM” -NewName UnitedKingdomHQ

Gary Trembath

Gary Trembath

a security group named Group1 must exist before you run the command

Remane the SAM name for Group1
Set-ADGroup -Identity Group1 -SamAccountName New_Group1