Remove
(
MemberTobeRemoved As String
);
Parameters
[in] String MemberTobeRemoved
Name of a user to be removed from a group, for example, John.
Description
Removes a member from a group, usually a user or another global
group (in case of a local group).
Remarks
If you are removing a user or a group from a local group you must
give the fully qualified name, for example, "DomainName\User" for
global user and "ComputerName\User" a for local user.
Example
Dim GroupObject As
IADsGroup
Set GroupObject =
GetObject("NTDS://YourDomainName/GroupName")
GroupObject.Remove "UserOfGroup"
See Also