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:
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.
Choose Start, then Run.
Type cmd.exe. Click OK to open a command prompt.
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.
To open the output file to see what the LDIF format looks like in the command-prompt window, type the filename to open it in Notepad.
You can also use 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