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
To open a command prompt, click Start, right-click Command Prompt, and then click Run as administrator.
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 passwordTo 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 |
---|---|
|
Perform an import. |
|
Perform an export. |
|
File to import. |
|
Host name and port of the AD LDS instance. |
|
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, |
|
Allows importing of passwords using simple authentication security layer (SASL) encryption. |
|
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.