?
Solved

Export Active directory full account details

Posted on 2008-10-29
9
Medium Priority
?
2,230 Views
Last Modified: 2008-10-31
I'm running Exchange server 2000.  I would like to export all my AD account details into Excel?

Account details such as:

Name, Initials, Office, Description, Email, Telephone, Fax, Mobile, Title, Company etc etc

I cannot find a way to export all the details.  I see an option to export an OU but this does not give me all the details....

Ellandrd
0
Comment
Question by:ellandrd
[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
  • 2
  • 2
  • 2
  • +2
9 Comments
 
LVL 4

Assisted Solution

by:keamo
keamo earned 200 total points
ID: 22830736
You can use LDIFDE to export that data.....

http://technet.microsoft.com/en-us/library/bb727091.aspx
0
 
LVL 35

Accepted Solution

by:
Joseph Daly earned 1400 total points
ID: 22830826
The below will return what you requested above. The Limit 0 tells it to return all matching acocunts.

dsquery user -samid * -limit 0 | dsget user -ln -fn -office -desc -email -tel -fax -mobile -title -company

Other pieces of information needed can be added by using the switches here
http://www.geocities.com/rick_lively/MANUALS/COMMANDS/D/DSGET.HTM#ParameterUser

At the end of your command just put >outfile.txt to save it to a file. Then you can import it into excel.

0
 
LVL 16

Author Comment

by:ellandrd
ID: 22831178
dsquery is not a recognised command.  ive tried to run this on the exchange server....
0
Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
LVL 4

Expert Comment

by:keamo
ID: 22831211
dsquery is part of the "Windows 2003 Administration Tools Pack".  You will have to download, install it.
0
 
LVL 35

Expert Comment

by:Joseph Daly
ID: 22831301
Or you can run the command from any workstation that has access to AD and these tools installed. As long as it can query AD the report can be run from anywhere.
0
 
LVL 33

Assisted Solution

by:Exchange_Geek
Exchange_Geek earned 200 total points
ID: 22831393
Use simple csvde command to get all the information for every AD Object into Excel.

Command would be

csvde -f C:\ADoutput.csv.
0
 
LVL 16

Author Comment

by:ellandrd
ID: 22832118
is the csvde command apart of 2003 admin kit?
0
 
LVL 33

Expert Comment

by:Exchange_Geek
ID: 22832418
Its part of windows support tools.
0
 
LVL 32

Assisted Solution

by:gupnit
gupnit earned 200 total points
ID: 22834593
Hi,
Well you can use various methods to export Users....Most common are LDIFDE and CSVDE
Here is how to use CSVDE:
For LDIFDE:
Hope this helps
Thanks
Nitin
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

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.
I don't pretend to be an expert at this, but I have found a few things that are useful. I hope that sharing them here will help others, so they will not have to face some rather hard choices. Since I felt this to be a topic of enough importance and…
This video discusses moving either the default database or any database to a new volume.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses
Course of the Month8 days, 2 hours left to enroll

765 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