Re: Query active directory
- From: "chriss3 [MVP]" <nospamhere_chrisse@xxxxxxxxxx>
- Date: Fri, 22 Sep 2006 19:20:22 +0200
Then use ldife or you can simple add the > to pipe the output to a txt file and then import into excel or something.
dsquery * -filter "(&(objectcategory=person)(mail=*))" -attr name mail proxyaddresses > nameofyourtextfile.txt
--
Regards
Christoffer Andersson, TrueSec
Executive Consultant
Microsoft MVP - Directory Services
----------------------------------------------------------------
http://www.chrisse.se - Active Directory Resources
"Bruce Charnitsky" <NoSpam_bcharnitsky_NoSpam@xxxxxxxxxxxxxxxxx> wrote in message news:%23llBrzl3GHA.1040@xxxxxxxxxxxxxxxxxxxxxxx
That is limited to what it outputs, can i get an export into a csv file?
"chriss3 [MVP]" <nospamhere_chrisse@xxxxxxxxxx> wrote in message news:DD59DA7F-5392-4B08-8465-2616FA6AF247@xxxxxxxxxxxxxxxxHello.
You can use the dsquery command line to with the LDAP query below.
dsquery * -filter "(&(objectcategory=person)(mail=*))" -attr name mail proxyaddresses
--
Regards
Christoffer Andersson
Microsoft MVP - Directory Services
----------------------------------------------------------------
http://www.chrisse.se - Active Directory Resources
"Bruce Charnitsky" <NoSpam_bcharnitsky_NoSpam@xxxxxxxxxxxxxxxxx> wrote in message news:O1t%23nPl3GHA.1608@xxxxxxxxxxxxxxxxxxxxxxxI want to query active directory and get a report of all my users and their e-mail adresses and if they have multiple adresses i want thoes also. How can i do this.
.
- Follow-Ups:
- Re: Query active directory
- From: Brad Turner [MIIS MVP]
- Re: Query active directory
- References:
- Query active directory
- From: Bruce Charnitsky
- Re: Query active directory
- From: chriss3 [MVP]
- Re: Query active directory
- From: Bruce Charnitsky
- Query active directory
- Prev by Date: Re: cant connect to ADAM instance with System.DirectoryServices
- Next by Date: Re: Delegation of Control only to add a contact with an e-mail alias
- Previous by thread: Re: Query active directory
- Next by thread: Re: Query active directory
- Index(es):
Relevant Pages
|