NewMember As String
[in] String NewMember
Name of the user to be added to a group, for example, John.
Adds a new member to a group, usually a user or another global group (in case of local group).
If you are adding a user or a group to a local group then you must give the fully qualified name, for example, "DomainName\User" for a global user and "ComputerName\User" for a local user.
Dim GroupObject As IADsGroup
Set GroupObject = GetObject("NTDS://YourDomainName/GroupName")
Note: You cannot
add a group to a global group.
The parameter for Add in case of local group could be in any of the following formats: