The UDF Forum already contains numerous UDFs to query AD objects, group memberships, and so on. Please take a look there, e.g. GetGroups(). Additionally MSDN has extensive documentation for ADSI.
_________________________
There are two types of vessels, submarines and targets.