Stands for Lightweight Directory Access Protocol Interchange Format (LDIF) Directory Exchange, a utility for bulk import/export of data between line-delimited (LDIF) text files and Active Directory. ldifde can be used to add, delete, or modify multiple user accounts, groups, computers, printers, or other AD objects in a single batch operation.


ldifde options


These are the same as for the csvde command described previously in this chapter, except for the following additional import-specific option:


Use “lazy writes” to improve disk performance for import process


Below is a properly formatted LDIF file called C:\newusers.txt, which creates three new user accounts. The accounts created are identical to the ones created in the example for the csvde command earlier in this chapter:

dn: CN=George Smith,OU=Support,DC=mtitcanada,DC=com
objectClass: user
sAMAccountName: gsmith
displayName: George T. Smith
userAccountControl: 514
# Create user account for Barb Smith

dn: CN=Barb Smith,OU=Support,DC=mtitcanada,DC=com
objectClass: user
sAMAccountName: bsmith
displayName: Barbara Lynn Smith
userAccountControl: 514
# Create user account for Judy Smith

dn: CN=Judy Smith,OU=Support,DC=mtitcanada,DC=com
objectClass: user
sAMAccountName: jsmith
displayName: Judy Ann Smith
userAccountControl: 512

Use ldifde to import the previous file into ...

Get Windows 2000 Administration in a Nutshell now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.