Re: Can Anyone Tell Me Why?
From: Mike Goodwin (mike.goodwin_at_oeconnection.com)
Date: 10/18/04
- Next message: Aamir: "Re: DNS bad key"
- Previous message: D-a-n_L: "Re: Learn LDAP Query using ADUC GUI"
- In reply to: Mike Goodwin: "Re: Can Anyone Tell Me Why?"
- Next in thread: Eric Fleischman [MSFT]: "Re: Can Anyone Tell Me Why?"
- Reply: Eric Fleischman [MSFT]: "Re: Can Anyone Tell Me Why?"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 18 Oct 2004 12:18:01 -0400
When I used WinNT instead of LDAP to connect to that domain group object...
it returned the membership results as expected. This seems like the easier
and quicker approach... yes/no?
"Mike Goodwin" <mike.goodwin@oeconnection.com> wrote in message
news:uoA6yiStEHA.1216@TK2MSFTNGP10.phx.gbl...
> Thanks for the reply Eric..
>
> On the surface that seemed doable, but now I have found this big ugly
script
> on MSDN to perform this simple second query and if fails on trying to
create
> an object that appantly I need to make this query... I am running on XP
Pro.
>
> MS Article Number: 297951
> Error :set ADsSid = CreateObject("ADsSID") ' this fails... can't create
> ActiveX Object (line 43)
>
> Is there an easier way to make this second query? Or where do I get this
> object from?
>
> Mike
>
>
> > Domain users group is somewhat special in that most of its members are a
> > member by virtue of the value in the primaryGroupID of the users. It's
the
> > other way that a user is a member of a group.
> > Issue a second query for all users with a primaryGroupID set to point to
> the
> > domain users group, and you'll probably find the rest.
> >
> > ~Eric
> >
> > --
> > This posting is provided "AS IS" with no warranties, and confers no
> rights.
> > Use of included script samples are subject to the terms specified at
> > http://www.microsoft.com/info/cpyright.htm
> >
> >
> > "Mike Goodwin" <mike.goodwin@oeconnection.com> wrote in message
> > news:OOv3WJRtEHA.3984@TK2MSFTNGP09.phx.gbl...
> > > Can anyone tell me why this scrupt will only return a few of tha
actual
> > > members of my Domain Users group. There should be 150 or so members
and
> > > it
> > > shows 4. When I tried it at home, there should be 19 members and it
> shows
> > > 1.
> > >
> > > Both ADs are running on Windows 2000.
> > >
> > > Thanks In Advance...
> > >
> > > Mike Goodwin
> > >
> > > Sub GetDomainUsersMembers
> > > msg = ""
> > > Set objTarget = GetObject("LDAP://CN=Domain
> > > Users,CN=Users,DC=<SUBDOMAIN>,DC=<DOMAIN>,DC=COM")
> > > objTarget.GetInfo
> > > Set objItems = objTarget.Members
> > > Msgbox objItems.Count
> > >
> > > Set objItems = nothing
> > > For Each obj in objTarget.Members
> > > msg = msg & obj.Name & chr(13)
> > > Next
> > > msgbox "GROUP MEMBERS" & chr(13) & msg
> > > Set objTarget = nothing
> > > End Sub
> > >
> > >
> >
> >
>
>
- Next message: Aamir: "Re: DNS bad key"
- Previous message: D-a-n_L: "Re: Learn LDAP Query using ADUC GUI"
- In reply to: Mike Goodwin: "Re: Can Anyone Tell Me Why?"
- Next in thread: Eric Fleischman [MSFT]: "Re: Can Anyone Tell Me Why?"
- Reply: Eric Fleischman [MSFT]: "Re: Can Anyone Tell Me Why?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|