Re: CSDVE Query
- From: "Dales" <Dales@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 11 Aug 2005 07:03:01 -0700
Al,
As you suggested I used objectCategory=Person and -r
"(&(objectCategory=Person)(telephonenumber=*))" and it gave me the exact list
that I wanted!
Many Thanks,
Dales
"Al Mulnick" wrote:
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnactdir/html/efficientadapps.asp
>
> ObjectClass is not indexed and will be slower. Using a not operator will
> also be slower, but might be the way to do this.
>
> Use -r objectCategory=Person to get user objects.
>
> Since you know that you only want objects that have telephone numbers (this
> is a phone book) you *could* modify that a bit.
>
> -r (&(objectCategory=Person)(telephonenumber=*)) to narrow it a bit. To
> make it better you *could* also index the telephonenumber attribute if
> needed.
> Unless you've marked the administrator accounts, there's no way I can think
> of to efficiently remove them. You may have to come up with a way in your
> environment that works for you. Or just remove their telephone number from
> the directory?
>
> Let us know if that helps. I know there are also some examples of queries
> out on the web that would help out as well.
>
> Al
>
>
> "Dales" <Dales@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:7A9146CF-1B88-422F-B70C-6842C692959B@xxxxxxxxxxxxxxxx
> > Hi,
> > I was wondering if someone could help me out on a query on CSDVE. I am
> > using
> > CSDVE to create a phone list of all users in the AD.
> >
> > I want to get a list of all users (not computers or Admin users) .
> >
> > I can use the below command to list all users - but it returns all admin
> > users and other logins that i dont want :
> >
> > "CSVDE -d " DC=mydomain,dc=org" -r objectClass=user -l
> > "givenname,telephoneNumber,department" -f adRawFile1.csv"
> >
> > So I thought that i could just list the departments(OUs) that i want users
> > from e.g.
> >
> > "CSVDE -d "OU=HR, OU=Finance, DC=mydomain,dc=org" -r objectclass=user -l
> > "givenname,telephoneNumber,department" -f adRawFile1.csv"
> >
> > ...but it doesnt work when i include more than one OU in the command!
> >
> > Q. Does anyone know how to list more than one OU in a CSVDE command?
> > or
> > Q. Is it possible to exclude objectclass that i dont want e.g.
> > objectclass!=computer?
> >
> > Thanks,
> >
> >
> >
>
>
>
.
- References:
- CSDVE Query
- From: Dales
- Re: CSDVE Query
- From: Al Mulnick
- CSDVE Query
- Prev by Date: the use of command adrep
- Next by Date: Re: DR Options?
- Previous by thread: Re: CSDVE Query
- Next by thread: How to get current Windows account logged on with ADSI?
- Index(es):
Relevant Pages
|