Getting add-adgroupmember to show up immediately

This topic contains 2 replies, has 3 voices, and was last updated by Profile photo of Daniel Krebs Daniel Krebs 6 months ago.

  • Author
  • #62476
    Profile photo of HotRod

    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
    Profile photo of nimms

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

  • #62517
    Profile photo of Daniel Krebs
    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.