Microsoft KB Archive/276440

= How to use CSVDE.EXE to back up and restore connection agreements =

Article ID: 276440

Article Last Modified on 2/27/2007

-

APPLIES TO


 * Microsoft Windows 2000 Server
 * Microsoft Exchange 2000 Server Standard Edition

-



This article was previously published under Q276440



SUMMARY
This article describes how to use Csvde.exe to export and import Connection Agreement information.



MORE INFORMATION
Csvde.exe is a Windows 2000 command-line utility that is located in the SystemRoot\System32 folder after you install Windows 2000. Csvde.exe is similar to Ldifde.exe but it extracts information in a comma-separated value (CSV) format. This section describes the command-line parameters.

Establishing Credentials
NOTE: If no credentials are specified, Csvde.exe binds as the currently logged on user by using Microsoft Security Support Provider Interface (SSPI).
 * For simple authentication: -a userdn [password | *]
 * For SSPI bind method: -b username domain [password | *]

Examples
If you want to perform a simple import of the current domain, use the following command:

csvde -i -f inpute.csv

If you want to perform a simple export of the current domain, use the following command:

csvde -f output.csv

If you want to export a specific domain with credentials, use the following command:

csvde -m -f output.csv

-b   *

-s 

-d &quot;cn=users,dc= ,dc=microsoft,dc=com&quot;

-r &quot;(&(objectCategory=person)(objectClass=user))&quot;

To extract all existing Connection Agreements into one file, use the following parameters, for example:

'''csvde -f output.csv -d &quot;cn=active directory connections,cn=microsoft

exchange,cn=services,cn=configuration,dc= ,dc=com&quot;'''

To extract individual Connection Agreements, specify the distinguished name (also known as DN) for the particular connector, for example:

csvde -f output.csv -d &quot;cn=exchange to windows ca,cn=active directory

connections,cn=microsoft exchange,cn=services,cn=configuration,dn= ,dn=com&quot;

To import this information and re-create Connection Agreements, delete the globally unique identifier (GUID) value from the output file for each of the Connection Agreements. You must do so because Active Directory stores the GUID values and does not allow another object to be created with the same GUID. A new GUID is generated for the Connection Agreement upon import. To locate the GUID, check the first line of the export file. The first line of the export file defines each field. The &quot;Object GUID&quot; data has been removed, but the comma that defines that field remains. Note the following example, where Input.csv represents the modified output file:

csvde -I -f input.csv

Keywords: kbinfo KB276440

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.