Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Active Directory > ADUC v dsget inconsistentcy

Reply
Thread Tools Display Modes

ADUC v dsget inconsistentcy

 
 
Martin, Greg \(RTIS\)
Guest
Posts: n/a

 
      11-30-2009
I'm trying to enumerate the member of an AD security group with dsget so I
can audit it regularly. The command runs great and I get a nice list of
DNs. However, if I then use ADUC to look at the members, I get a superset
of the list from dsget. Seems like dsget consistently reports only 27 of
the 32 group members and the same are missing every time.

As a check, I also ran SysInternals' ADExplorer and got the same results as
dsget.

Any thoughts?

\\Greg

 
Reply With Quote
 
 
 
 
Richard Mueller [MVP]
Guest
Posts: n/a

 
      11-30-2009

"Martin, Greg (RTIS)" <> wrote in message
news:...
> I'm trying to enumerate the member of an AD security group with dsget so I
> can audit it regularly. The command runs great and I get a nice list of
> DNs. However, if I then use ADUC to look at the members, I get a superset
> of the list from dsget. Seems like dsget consistently reports only 27 of
> the 32 group members and the same are missing every time.
>
> As a check, I also ran SysInternals' ADExplorer and got the same results
> as dsget.
>
> Any thoughts?
>
> \\Greg


Most methods reveal direct members of the group that do not have the group
designated as their "primary". ADUC is the exception, it shows members even
if the group is their "primary". Hopefully this accounts for what you see.
All of the missing members have the group designated as their "primary"
group.

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--


 
Reply With Quote
 
Martin, Greg \(RTIS\)
Guest
Posts: n/a

 
      11-30-2009
I think we're seeing it the other way. dsget is only listing members who's
primary group is the group I'm enumerating. Any idea why it works that way?
Seems a bit flawed.

Oh, and here's some new information. If you load the command-line tools
that are part of Windows 2008 R2 RSAT tools on Windows 7, this appears to be
"fixed".

\\Greg

"Richard Mueller [MVP]" <rlmueller-> wrote in
message news:...
>
> "Martin, Greg (RTIS)" <> wrote in message
> news:...
>> I'm trying to enumerate the member of an AD security group with dsget so
>> I can audit it regularly. The command runs great and I get a nice list
>> of DNs. However, if I then use ADUC to look at the members, I get a
>> superset of the list from dsget. Seems like dsget consistently reports
>> only 27 of the 32 group members and the same are missing every time.
>>
>> As a check, I also ran SysInternals' ADExplorer and got the same results
>> as dsget.
>>
>> Any thoughts?
>>
>> \\Greg

>
> Most methods reveal direct members of the group that do not have the group
> designated as their "primary". ADUC is the exception, it shows members
> even if the group is their "primary". Hopefully this accounts for what you
> see. All of the missing members have the group designated as their
> "primary" group.
>
> --
> Richard Mueller
> MVP Directory Services
> Hilltop Lab - http://www.rlmueller.net
> --
>
>

 
Reply With Quote
 
Richard Mueller [MVP]
Guest
Posts: n/a

 
      11-30-2009
I tested again in my W2k3 domain and confirmed that members are never
revealed if the group is their "primary". The only way I know to find users
that have a given group designated as their primary is to find users whose
primaryGroupID attribute (an integer value) matches the primaryGroupToken
attribute of the group. For example, the primaryGroupToken attribute of the
"Domain Users" group is 513. To find all users that have this group as their
primary use the filter:

(primarGroupID=513)

To find all users that have some other group as primary:

(&(objectCategory=person)(objectClass=user)(!prima ryGroupID=513))

You can use these filters in Joe Richards' adfind utility, or in a VBScript
program that uses ADO to search AD.

The reason most methods fail to reveal primary group membership is that this
group is never included in the "memberOf" attribute of user objects. Also,
the "member" attribute of group objects never includes members that have the
group designated as their primary. The same goes for the Members method of
user objects and the Groups method of group objects.

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--

"Martin, Greg (RTIS)" <> wrote in message
news:%...
>I think we're seeing it the other way. dsget is only listing members who's
>primary group is the group I'm enumerating. Any idea why it works that
>way? Seems a bit flawed.
>
> Oh, and here's some new information. If you load the command-line tools
> that are part of Windows 2008 R2 RSAT tools on Windows 7, this appears to
> be "fixed".
>
> \\Greg
>
> "Richard Mueller [MVP]" <rlmueller-> wrote in
> message news:...
>>
>> "Martin, Greg (RTIS)" <> wrote in message
>> news:...
>>> I'm trying to enumerate the member of an AD security group with dsget so
>>> I can audit it regularly. The command runs great and I get a nice list
>>> of DNs. However, if I then use ADUC to look at the members, I get a
>>> superset of the list from dsget. Seems like dsget consistently reports
>>> only 27 of the 32 group members and the same are missing every time.
>>>
>>> As a check, I also ran SysInternals' ADExplorer and got the same results
>>> as dsget.
>>>
>>> Any thoughts?
>>>
>>> \\Greg

>>
>> Most methods reveal direct members of the group that do not have the
>> group designated as their "primary". ADUC is the exception, it shows
>> members even if the group is their "primary". Hopefully this accounts for
>> what you see. All of the missing members have the group designated as
>> their "primary" group.
>>
>> --
>> Richard Mueller
>> MVP Directory Services
>> Hilltop Lab - http://www.rlmueller.net
>> --
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: DSGET not working on Windows 7!! Paul Bergson [MVP-DS] Active Directory 1 11-25-2009 12:13 PM
Tabs missing in ADUC Logan Burt Active Directory 3 11-23-2009 01:17 PM
Cannot access ADUC on DC Simon Active Directory 11 11-08-2009 05:59 PM
Re: dsquery and dsget Meinolf Weber [MVP-DS] Active Directory 0 11-01-2009 09:39 AM
ADUC Tabs Missing LWWilks Windows Vista Administration 1 01-18-2008 10:53 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59