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
E
!!!???
to modify group name : G. Set-AdGroup
Answer is G
Reference:
https://technet.microsoft.com/en-us/library/ee617225.aspx
G
https://technet.microsoft.com/en-us/library/ee617199.aspx
G
https://www.youtube.com/watch?v=NlrFebohjrs
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 🙂
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
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