My guess is you have the Distinguished Name (DN) wrong. Go into ADSIEdit
and verify that the DN you have in your script matches the actually defined
DN of the object.
--
Paul Bergson
MVP - Directory Services
MCTS, MCT, MCSE, MCSA, Security+, BS CSci
2008, 2003, 2000 (Early Achiever), NT4
http://www.pbbergs.com
Please no e-mails, any questions should be posted in the NewsGroup This
posting is provided "AS IS" with no warranties, and confers no rights.
"Richard Mueller [MVP]" <rlmueller-> wrote in
message news:e%...
> Victor wrote:
>
>> I'm trying to set a saved query that will return the members of on
>> group.
>> So I've created the follwing query to get all the users which are
>> member of the *group* Internet from the *domain* mydomain.local in the
>> *OU* Bucharest
>>
>> -(&(&(objectCategory=person)(|(objectClass=contact) (objectClass=user))(memberOf=cn=Internet,ou=Buchar est,dc=mydomain,dc=local)))-
>>
>> But I get nothing.
>> Some help...
>>
>
> It looks like you want users and contacts that are direct member of the
> group. I would try:
>
> (&(objectCategory=person)(memberOf=cn=Internet,ou= Bucharest,dc=mydomain,dc=local))
>
> The clause (objectCategory=person) will return user and contact objects.
>
> --
> Richard Mueller
> MVP Directory Services
> Hilltop Lab - http://www.rlmueller.net
> --
>
>