Logon Scripts

 

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.

˚

 See also

 


 

 


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.

 

 *


Google

Webcomputerperformance.co.uk

GFi Events Manager

Guy Recommends: GFi EventsManager

Here is a solution to monitor, manage and archive thousands of events that are generated by devices across your entire network.  Get your free evaluation copy of GFI EventsManager.

 

Home Copyright © 1999-2008 Computer Performance LTD All rights reserved

Please report a broken link, or an error.