Use Ldifde.exe and Csvde.exe data export tools to create Active Directory objects

Ldifde.exe and Csvde.exe are two data export tools for creating Active Directory objects, through the use of clean formatted data presented in LDIF or CSV format. They can export data based on its location in the directory, OU membership and object class, such as user, group or computer.

These tools can also specify which attributes to export. Although the tools are fairly limited as far as specifying certain attributes, they facilitate Active Directory management because once the script is ready, an admin can save time by using it to import or export multiple users at a time.

To create an export file of every object in the user's container of test.com, with Ldifde.exe, follow these steps:

  1. Log on to a workstation or server in the test.com domain (or if you're an admin of Microsoft, it would be microsoft.com) with an account that has Domain Admin rights.

  2. Choose Start, then Run.

  3. Type cmd.exe. Click OK to open a command prompt.

  4. Type "ldifde -f UserContainer.txt â "d "cn=users,dc=test,dc=com" and press Enter to execute it. This command creates a file containing all the attributes and values of the user container and all the objects within it.

  5. To open the output file to see what the LDIF format looks like in the command-prompt

Requires Free Membership to View

  1. window, type the filename to open it in Notepad.

You can also use these tools to perform directory imports if necessary. However, you cannot set the initial password using these tools.

Rating this tip below will let us know how useful it was to you. And if you have a Windows tip, timesaver or workaround to share, submit it to our tip contest. You could win a $150 gift certificate.

This was first published in July 2007

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.