Exportera

ldifde -f Export.ldf -s myserver -d "ou=users,ou=myorg,dc=domain,dc=net" -p subtree -r "(&(objectCategory=person)(objectClass=User)(givenname=*))" -l "objectclass,cn,description,displayName,name,countryCode,accountExpires,sAMAccountName,sn,givenName,-
userPrincipalName,homeDirectory,homeDrive,logonHours,userParameters,telephoneNumber,mail,scriptPath,-
title,otherPager,ipPhone,mobile,st,postalCode,physicalDeliveryOfficeName,department,company,streetAddress,-
extensionAttribute1,postOfficeBox,l,c,co,otherIpPhone,otherMobile,pager,directReports,info,-
facsimileTelephoneNumber,homePhone,profilePath,url"

 

Importera

ldifde -i -f importfil.ldf -s <Domaincontroller>

Bra flaggor att kunna

-k

Ignores errors during an import operation and continues processing. This parameter ignores all of the following errors:
    The object is already a member of the group
    The operation has an object class violation
    This violation means that the specified object class does not exist, if the object being imported has no other attributes.
    The object already exists
    The operation has a constraint violation
    The attribute or value already exists
    The operation found no such object

-z

Ignore all faults during import

 

Importera och konvertera

ldifde -i -f importfil.ldf -s <Domaincontroller> -c "från sträng" "till sträng"

ex.

ldifde -i -f e:\Export.ldf -s myserver -c "DC=domain,DC=net" "DC=domain2,DC=local" -k

http://technet.microsoft.com/en-us/library/cc731033%28v=ws.10%29.aspx