Talk About Network

Google





Software > ADSI General > IAdsGroup.membe...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 5283 of 5437
Post > Topic >>

IAdsGroup.members returns an empty set

by "Peter" <nospam@[EMAIL PROTECTED] > May 26, 2008 at 09:43 AM

Hi all,

I have a piece of code (see below) which is used to retrieve all
user/groups 
and their members. This works fine in many network environments, except in

this network where the code was used recently. Are there any conditions 
which cause the members property to be empty? The code DOES work for 
BUILT_IN groups like "Administrators" and "Guests", but when a custom
domain 
group is retrieved, the members property stays empty. (and this problem
only 
occurs in one particular network). Some information:

- The user is a Domain Admin
- There are custom domain groups which have other custom domain groups as
a 
member.
- All the domain groups are found in the first For Each loop.
- Only the members of the BUILT_IN groups are found in the seconde For
Each 
loop
- Normally this code works fine, so perhaps it's caused by the network 
environment
- The IAdsUser.Groups property works fine in this network (used in an
other 
piece of code)

--------------------------------------------------
Set GroupObjectArray = GetObject("WinNT://" & strDomain)
GroupObjectArray.Filter = Array("Group")

For Each GroupObject In GroupObjectArray
    //this does work for BUILT_IN domain groups and for custom domain
groups

    Set memberList = GroupObject.Members
    memberList.Filter = Array("Group")

    For Each MemberGroupObject In memberList
            //this only works for BUILT_IN domain groups. Normally this 
works fine for all groups.
            //groupObject = "BUILTIN\Administrators"
            //memberGroupObject = "domain\Domain Admins"
    Next MemberGroupObject

Next GroupObject
--------------------------------------------------

Anyone any ideas?
Thanks!
 




 3 Posts in Topic:
IAdsGroup.members returns an empty set
"Peter" <nos  2008-05-26 09:43:38 
Re: IAdsGroup.members returns an empty set
"Richard Mueller [MV  2008-05-26 09:37:23 
Re: IAdsGroup.members returns an empty set
"Peter" <nos  2008-06-07 15:17:11 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Thu Jan 8 20:56:50 PST 2009.