I am trying to add and remove accounts in my AD depending on membership of a certain group.

------------------------------------------------
Dim test As DirectoryEntry
Try
test = entrypc.Children.Find("john", "User")
entrypc.Children.Remove(test)
-------------------------------------------------
I have succeeded to add and remove but I don't understand how to determine if a user is a member of a specific group.

Does anyone know how to solve this problem, please?

/Anders