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

20 Comments on “Which cmdlet should you run?

  1. cutedevil says:

    jaido is right; G is the answer

    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/ee617225.aspx

    Set-ADGroup [-Identity] [-Add ] [-Clear ] [-Description ] [-DisplayName ] [-GroupCategory ] [-GroupScope ] [-HomePage ] [-ManagedBy ] [-Remove ] [-Replace ] [-SamAccountName ] [-AuthType { | }] [-Credential ] [-Partition ] [-PassThru ] [-Server ] [-Confirm] [-WhatIf] []




    0



    0
  2. Walter says:

    G is the correct one.

    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.

    From




    0



    0
  3. Frank says:

    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.




    0



    0
  4. Ben says:

    The correct answer is G

    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.




    0



    0
  5. imfusio says:

    Tested in lab:

    Changes SAM account name (pre-windows 2000 name. Can also change Display Name with -DisplayName)
    Get-ADGroup TestGroup1 | Set-ADGroup -SamAccountName TestGroup2

    Changes Name (CN) property (but does not change SAM account name OR the DisplayName):
    Rename-ADObject -Identity “cn=Group1,ou=Lab Users,dc=hvlab,dc=local” -NewName Group2

    So since this question asks for SAMAccountName, answer should be: G. Set-ADGroup
    It should not be Rename-ADObject: It does not ask for the container Name property to be changed.




    0



    0
    1. imfusio says:

      You can try this for yourself, and actually see it using
      Get-ADGroup TestGroup1 -Properties *
      After trying both Set-ADGroup and Rename-ADObject cmdlets. This proves what properties are actually changed.




      0



      0
  6. Rick says:

    The correct answer should be G as per MS:
    https://technet.microsoft.com/en-us/library/ee617225.aspx

    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.

    Thanks




    0



    0

Leave a Reply