Introduction to LDIFDE Modify
One of the main uses of LDIFDE is to modify existing Active Directory objects. In fact Modify, is the key advantage of LDIFDE compared with CSVDE.
Topics
LDIFDE Modify a User's Attributes
Stage 1: Obtain the dn (distinguished name) If in doubt, then use ADSI Edit from the support tools. The dn: consists of a cn (common name), then
the OU or Users container, and finally the domain name. The domain name may, or may not have an extension such as .com. Stage 2: Open Notepad and create the ldifde code:
Example: dn:
CN=Ron,OU=Students,DC=cp,DC=mosel
changetype: modify
replace: displayName
displayName: Manager -
Save the file for example, ron.ldf Stage 3: At the command prompt type, ldifde -i -f ron.ldf
Note 1: Naturally navigate to the correct folder where you saved the ron.ldf file. Note 2: Remember the -i import and - f switches. Note 3: Pay special attention to the - (Dash)
so many people overlook this important terminator. Note 4: Pay close attention to the keywords, changetype: modify. Next examine how replace: specifies the LDAP property, you could substitute
Company, Department or even PhysicalDeliveryOfficeName, however you cannot just make up LDAP properties, you have know or research the precise spelling. See more
here.
See also
|