I have an array of distinguished names that I'm trying to remove from a group and I keep getting this error:
Exception calling "PutEx" with "3" argument(s): "Unspecified error
+ $groupObj.PutEx <<<< (4, "Member", $removeMember) #remove members
+ CategoryInfo : NotSpecified: (:) , MethodInvocationException
+ FullyQualifiedErrorId : CatchFromBaseAdapterMethod
The group is a large group (over 2,000 existing members) and I'm trying to remove some members.
$groupObj = [ADSI]"LDAP://<domainController>/$groupDN"
#removeMember has some valid DN's to remove.
$groupObj.PutEx(4, "Member", $removeMember)
I'm wondering if I'm running into a problem because the group member size is over 1,500 and if I'll need to replace (2) instead of remove (4) using PutEx. Any one know what's going on?