Solved

AD Querys

Posted on 2012-03-14
3
344 Views
Last Modified: 2012-03-16
I am trying to run a query in ADUC to get a list of all my users.  Does anyone know of a good tool to query all my users and export to a csv.  Or at least to be able to pull all my users.  I have multiple OU's that I need to pull from.
0
Comment
Question by:APWIP-Admin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 57

Accepted Solution

by:
Mike Kline earned 500 total points
ID: 37720063
A lot of ways, a free GUI tool that is nice is adinfo   http://www.cjwdev.co.uk/Software/ADReportingTool/Info.html

adfind is a great command line tool  (free)   http://www.joeware.net/freetools/tools/adfind/index.htm

adfind -default -f "&(objectcategory=person)(objectclass=user)" samaccountname -csv > c:\users.csv

other methods include powershell, dstools, csvde, ADUC, and other methods but that should get you started

Thanks

Mike
0
 

Author Closing Comment

by:APWIP-Admin
ID: 37720121
Perfect.  Thank you
0
 
LVL 8

Expert Comment

by:Brent Challis
ID: 37731802
if you have a Windows Server 2008 R2 DC or have the gateway services installed so that you can use the ActiveDirectory module for PowerShell, you could also use:

Get-ADUser | Export-Csv Users.csv
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question