?
Solved

AD Querys

Posted on 2012-03-14
3
Medium Priority
?
347 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 2000 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

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Uncontrolled local administrators groups within any organization pose a huge security risk. Because these groups are locally managed it becomes difficult to audit and maintain them.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…
Suggested Courses

743 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