Getting add-adgroupmember to show up immediately

Welcome Forums General PowerShell Q&A Getting add-adgroupmember to show up immediately

This topic contains 2 replies, has 3 voices, and was last updated by

 
Moderator
1 year, 10 months ago.

  • Author
    Posts
  • #62476

    Participant
    Points: 0
    Rank: Member

    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

    Participant
    Points: 0
    Rank: Member

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

  • #62517

    Moderator
    Points: 24
    Team Member
    Rank: Member

    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.

The topic ‘Getting add-adgroupmember to show up immediately’ is closed to new replies.