Logon Scripts

Guy recommends :
Free Solarwinds
VM Console

Solarwinds VM Console Free Download

Find out which of your VMs are a waste of space and which VMs need more resources.


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 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.

There are also two bonus tools in the free download, and all 3 have been approved by Microsoft:

  1. Bulk-import new users into Active Directory.
  2. Seek and zap unwanted user accounts.
  3. Find inactive computers.

Download your FREE bulk import tool.

 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.

 

 *


Custom Search

Guy Recommends: WMI Monitor and It's Free!Solarwinds WMI Monitor

Windows Management Instrumentation (WMI) is one of the hidden treasures of Microsoft operating systems.

Fortunately, Solarwinds have created the Free WMI Monitor so that you can actually see and understand these gems of performance information.  Take the guess work out of which WMI counters to use for applications like Microsoft Active Directory, SQL or Exchange Server.

Download your free copy of WMI Monitor

 

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

Please report a broken link, or an error.