Getting add-adgroupmember to show up immediately

This topic contains 2 replies, has 3 voices, and was last updated by  Daniel Krebs 1 year, 4 months ago.

  • Author
  • #62476


    I am using

    Add-ADGroupMember -Identity 'insertGroupName' -Members 'insertComputerName' -Server 'insertServerName'

    It adds the group to my computer account, but it does not show up right away when I get members of on my computer object. My question is, How do I get it to show up right away?

    Thanks for any and all help.

  • #62479


    Hello there! Just add the -PassThru parameter. I hope I understood you correctly.

  • #62517

    Daniel Krebs

    Are you using the same -Server parameter on you're Get command as well? If not, you're subjected to Active Directory replication delays which depend on the setup of the domain.

You must be logged in to reply to this topic.