LDIFDE – Modify

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

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

Learning Points for LDIFDE Modify.

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.

Guy Recommends:  SolarWinds’ Free Bulk Import ToolFree Download Solarwinds Bulk Import Tool

Import users from a spreadsheet.  Just provide a list of the users with their fields in the top row, and save as .csv file.  Then launch this FREE utility and match your fields with AD’s attributes, click and import the users.

Optionally, you can provide the name of the OU where the new accounts will be born. Download your FREE bulk import tool.

If you need more comprehensive software, download a free trial of SAM (Server & Application Monitor)

 See also


If you like this page then please share it with your friends

 



Download your eBook:  How to use LDIFDE commands – only $5.25

LDIFDESave hours of frustration and buy Guy’s eBook.  The extra features include: detailed instructions on how to add and modify user accounts.  Worked LDIFDE examples on changetype: and unicodePwd.

You get a printer friendly version with copy enabled, and no expiry date.