MarekChladek
Wed Aug 13 00:16:01 PDT 2008
Hello Richard,
thank you for confirmation my temporary solution.
One of my colleague during wrong LDIF import make computer accounts with
Domain Users membership.
So use primaryGroupID was only temporary solution.
Scripts from David are able to retrieve all direct members of Domain Users.
Thank you for your help
Marek
"Richard Mueller [MVP]" wrote:
> Marek Chladek wrote:
>
> >I have on Windows 2003 AD ( Native Domain and Forest 2003 ) problem with
> > report members ( for example all ba* users ) from group Domain Users.
> > There is more than 15 000 users in AD.
> >
> > Dsget group -member or VBS ( memberof ) return empty results.
> >
> > As temporary solution i'm checking all users account for primaryGroupID
> > atribut ( value 513 )
> >
> > Is there any chance for direct report from Domain Users group ?
> >
>
> The member attribute of groups and the memberOf attribute of users do not
> reveal membership in the "primary" group. By default the primary group of
> all users is "Domain Users" (the primary group of all computer objects is
> "Domain Computers"). If this has not been modified, you can assume that
> everyone is a member of "Domain Users". Otherwise, the only way to retrieve
> all direct members of Domain Users is to search for all users where
> primaryGroupID is 513. The group Domain Users has 513 assigned to the
> operational attribute primaryGroupToken.
>
> --
> Richard Mueller
> MVP Directory Services
> Hilltop Lab -
http://www.rlmueller.net
> --
>
>
>