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 a global security group named Group1.
You need to modify the SAM account name of Group1.
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

8 Comments on “Which cmdlet should you run?

  1. Alex says:

    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 ๐Ÿ™‚




    0



    0
  2. Drifter says:

    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




    0



    0
  3. Gary Trembath says:

    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




    0



    0

Leave a Reply