Remove-adgroupmember slolw performance.

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,

try the - confirm $False option

to suppress the confirmation


Still slow but not asking for the confirmation this time

Can you post your code ?