Re: Query active directory

Tech-Archive recommends: Fix windows errors by optimizing your registry



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@xxxxxxxxxxxxxxxx
Hello.
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@xxxxxxxxxxxxxxxxxxxxxxx
I 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.





.



Relevant Pages

  • Re: Query active directory
    ... Microsoft MVP - Directory Services ... http://www.chrisse.se - Active Directory Resources ... e-mail adresses and if they have multiple adresses i want thoes also. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Domain admin Account change
    ... Microsoft MVP - Directory Services ... http://www.chrisse.se - Active Directory Resources ... I want to change the default domain admin password, ... Consiquently, the dom admin is unsecure, as is the backup account. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Query active directory
    ... You can use the dsquery command line to with the LDAP query below. ... http://www.chrisse.se - Active Directory Resources ... their e-mail adresses and if they have multiple adresses i want thoes ...
    (microsoft.public.windows.server.active_directory)
  • Re: Block/Prevent Non Windows System on network
    ... You could use Server and Domain Isolation Using IPsec and Group Policy: ... Microsoft MVP - Directory Services ... http://www.chrisse.se - Active Directory Resources ... "RollNpc" wrote in message ...
    (microsoft.public.windows.server.active_directory)
  • Re: How to make AD in 2 seperate forrest communicate
    ... Microsoft MVP - Directory Services ... http://www.chrisse.se - Active Directory Resources ... "Chris Peikert" wrote in message ... are trying to create the two way trust between them for administration purposes. ...
    (microsoft.public.windows.server.active_directory)