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.
The domain contains a user named User1 and a globalsecurity 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 AddsDomainControNer

C.
Install WindowsFeature

D.
Install AddsDomain

E.
Rename-AdObject

F.
Set-AdAccountControl

G.
Set-AdGroup

H.
Set-User

24 Comments on “Which cmdlet should you run?

  1. Puck says:

    Set-ADGroup can be used to modify the properties of an AD DS group objects. Set-ADGroup has a predefined list of properties that can modified, including the following:

    ■GroupScope
    ■ManagedBy
    ■DisplayName
    ■SAMAccountName
    ■GroupCategory
    ■Description
    ■HomePage

    When using Set-ADGroup, you must specify the group that you want to modify. You can use the following formats to specify the group you want to modify:

    ■DN
    ■GUID
    ■SID
    ■SAM account name




    1



    0
  2. Grant 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
  3. han says:

    Rename-Object renames only DN. There are multiple names associated with user or group.

    FirstName (GivenName)
    Initials(initial)
    LastName (Surname)
    Displayname (displayname)
    User Login Name (SAMAccountName)

    All of these can be changed using Set-ADUser cmdlet.
    But when you run Get-ADUser -Filter ‘name -like “User10″‘, you will get one more name attribute, ‘name’. This attribute ‘name’ is read from user DN. So in order to change this ‘name’ attribute value, you have to modify user DN. This is only possible by using Rename-ADObject. For rest of renaming jobs, use Set-ADUser or Set-ADGroup as above.




    0



    0
  4. Marek says:

    There is NO good answer !!!

    Set-ADUser -Identity:”CN=*,OU=*,DC=*,DC=*” SamAccountName:”***” -Server:”server1.test.com”

    Do it in Active Directory Administrative Center manually and check Powershell history.




    0



    0
  5. JoeTech says:

    I had this question but Set-ADGroup was not one of my choices. I had all the same choices in same order A-F. In that case I think I would go with Rename-AdObject.




    0



    0
  6. LJ says:

    I’d say G is correct.

    Article //technet.microsoft.com/en-us/library/ee617225.aspx says:

    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
    1. Biloux says:

      just read the “details” section of your link :

      “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 cmdle”

      correct answer is G




      0



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

    https://technet.microsoft.com/en-us/library/ee617225.aspx




    0



    0
  8. Rawad says:

    It’s 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
  9. Dolittle says:

    Taken from Microsoft website

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

    BR




    0



    0
  10. edgar says:

    G.–Set-AdGroup
    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.




    0



    0

Leave a Reply