Ldifde
			
			
			
			
			This page is from Microsoft
			
				Creates, modifies, and deletes directory objects on computers 
				running Windows Server 2003 operating systems or Windows XP 
				Professional. You can also use Ldifde to extend the schema, 
				export Active Directory user and group information to other 
				applications or services, and populate Active Directory with 
				data from other directory services.
			
				 
			
				 
			Syntax
			
				Ldifde [-i] [-f FileName] [-s 
				ServerName] [-c String1 String2] [-v] 
				[-j Path] [-t PortNumber] [-d 
				BaseDN] [-r LDAPFilter] [-p Scope] 
				[-l LDAPAttributeList] [-o 
				LDAPAttributeList] [-g] [-m] [-n] [-k] 
				[-a UserDistinguishedName Password] [-b 
				UserName Domain Password] [-?]
			Parameters
			
				
					
						
							-i
						
							Specifies import mode. If not specified, the default 
							mode is export.
					 
					
						
							-fFileName
						
							Identifies the import or export file name.
					 
					
						
							-sServerName
						
							Specifies the domain controller to perform the 
							import or export operation. By default, Ldifde will 
							run on the domain controller on which Ldifde is 
							installed.
					 
					
						
							-cString1 String2
						
							Replaces all occurrences of String1 with 
							String2. This is generally used when importing 
							data from one domain to another and the 
							distinguished name of the export domain (String1) 
							needs to be replaced with that of the import domain 
							(String2).
					 
					
					
						
							-jPath
						
							Sets the log file location. The default is the 
							current path.
					 
					
						
							-tPortNumber
						
							Specifies a LDAP port number. The default LDAP port 
							is 389. The global catalog port is 3268.
					 
					
						
							-dBaseDN
						
							Sets the distinguished name of the search base for 
							data export.
					 
					
						
							-rLDAPFilter
						
							Creates a LDAP search filter for data export. For 
							example, to export all users with a particular 
							surname, you can use the following filter -r 
							(and(objectClass=User)(sn=Surname))
					 
					
						
							-pScope
						
							Sets the search scope. Search scope options are 
							Base, OneLevel, or SubTree.
					 
					
						
							-lLDAPAttributeList
						
							Sets the list of attributes to return in the results 
							of an export query. If this parameter is omitted, 
							all attributes are returned.
					 
					
						
							-oLDAPAttributeList
						
							Sets the list of attributes to omit from the results 
							of an export query. This is typically used when 
							exporting objects from Active Directory and then 
							importing them into another LDAP-compliant 
							directory. If attributes are not supported by 
							another directory, you can omit the attributes from 
							the result set using this option.
					 
					
					
						
							-m
						
							Omits attributes that only apply to Active Directory 
							objects such as the ObjectGUID, objectSID, 
							pwdLastSet and samAccountType attributes.
					 
					
						
							-n
						
							Omits export of binary values.
					 
					
						
							-k
						
							Ignores errors during the import operation and 
							continues processing. The following is a complete 
							list of ignored errors:object is already a member of 
							the groupobject class violation (meaning the 
							specified object class does not exist), if the 
							object being imported has no other attributesobject 
							already existsconstraint violationattribute or value 
							already existsno such object
					 
					
						
							-aUserDistinguishedName Password
						
							Sets the command to run using the supplied 
							UserDistinguishedName and Password. By 
							default, the command will run using the credentials 
							of the user currently logged on to the network.
					 
					
						
							-bUserName Domain Password
						
							Sets the command to run using the supplied 
							UserName Domain Password. By default, the 
							command will run using the credentials of the user 
							currently logged on to the network.
					 
					
						
							-?
						
							Displays the command menu.
					 
				 
			 
			Remarks
			
			
				
				The following is an example of an LDIF import file format using 
				the add value.
				DN:CN=SampleUser,DC=DomainName
				changetype:add
				CN:SampleUser
				description:DescriptionOfFile
				objectClass:User
				sAMAccountName:SampleUser
			 
			Examples
			
				To retrieve only the distinguished name, common name, first 
				name, surname, and telephone number of the returned objects, 
				type:
-lDistinguishedName,CN,GivenName,SN,Telephone
				To omit the object GUID, type:
				-owhenCreated,whenChanged,objectGUID
			Formatting legend
			
				
					
					
						| Italic | Information that the user must supply | 
					
						| Bold | Elements that the user must type exactly as shown | 
					
						| Ellipsis (...) | Parameter that can be repeated several times in a 
						command line | 
					
						| Between brackets ([]) | Optional items | 
					
						| Between braces ({}); choices separated by pipe (|). 
						Example: {even|odd} | Set of choices from which the user must choose only 
						one | 
					
						| Courier font | Code or program output | 
				
			 
			
			
			
 |  |