Remove-adgroupmember slolw performance.

Welcome Forums General PowerShell Q&A Remove-adgroupmember slolw performance.

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

 
Participant
3 weeks, 5 days ago.

  • Author
    Posts
  • #158045

    Participant
    Topics: 2
    Replies: 1
    Points: 30
    Rank: Member

    Good afternoon,

     

    Why the remote-adgroupmember is so slow ?

     

    WHen i use it in a foreach call to remove all the groups selected in a multiselect listbox, firstly there is a popup to confirm for each modification, secondly there is a big latency between each removes and confirmation.

     

    Is there another way ?

     

    Kind regards,

  • #158049

    Participant
    Topics: 3
    Replies: 42
    Points: 290
    Helping Hand
    Rank: Contributor

    try the – confirm $False option

    to suppress the confirmation

     

  • #158055

    Participant
    Topics: 2
    Replies: 1
    Points: 30
    Rank: Member

    Still slow but not asking for the confirmation this time

  • #158060

    Participant
    Topics: 3
    Replies: 42
    Points: 290
    Helping Hand
    Rank: Contributor

    Can you post your code ?

You must be logged in to reply to this topic.