Share via


Import or Export Directory Objects Using Csvde

Applies To: Windows Server 2008

The csvde utility imports and exports data from Active Directory Lightweight Directory Services (AD LDS) by using files that store data in the comma-separated value (CSV) format. You can also support batch operations based on the CSV file format standard.

To import or export directory objects by using csvde

  1. To open a command prompt, click Start, right-click Command Prompt, and then click Run as administrator.

  2. Do one of the following:

    • To import directory objects, at the command prompt, type:

      csvde -i -f filename -s servername:port -m -a username domain password

    • To export directory objects, at the command prompt, type the following and then press ENTER:

      csvde -e -f filename -s servername:port -m a username domain password

The following table contains the parameters in step 2 and other commonly used csvde parameters. For more information about csvde parameters, type csvde /? at a command prompt and then press ENTER.

Parameter Description

-i

Perform an import.

-e

Perform an export.

-f

File to import.

-s

Host name and port of the AD LDS instance.

-m

Ignore (that is, do not import or export) attributes that are only used by Active Directory Domain Services (AD DS).

You can use this parameter when you export directory objects from an existing AD DS forest and import them into AD LDS.

-a

Account credentials. If they are not provided, ldifde uses the credentials of the currently logged on user.

-h

Allows importing of passwords using simple authentication security layer (SASL) encryption.

-c String1 String2

Replaces all occurrences of String1 with String2. With AD LDS, you can use the constants #schemaNamingContext and #configurationNamingContext in place of the distinguished names of the schema directory partition and configuration directory partitions when you replace strings within .ldf files.

For more information, see Csvde.