Applies to: Exchange Server 2007 SP3, Exchange Server 2007 SP2, Exchange Server 2007 SP1, Exchange Server 2007
Topic Last Modified: 2007-06-19

This topic explains how to use the ImportEdgeConfig.ps1 script to restore user customized data on a computer that has the Microsoft Exchange Server 2007 Edge Transport server role installed. This script imports all user-configured settings and data stored in an intermediate XML file that is created by the ExportEdgeConfig.ps1 script.

Run the ImportEdgeConfig.ps1 script after you have performed a clean installation of an Exchange 2007 Edge Transport server. For more information about the configuration information that is being restored, see Using Cloned Configuration Tasks for Edge Transport Server Disaster Recovery.

Before You Begin

To perform the following procedures on a computer that has the Edge Transport server role installed, you must log on by using an account that is a member of the local Administrators group on that computer.

If any Send connectors are configured to use credentials, the password is written to the intermediate XML file as an encrypted string. You can use the -key parameter with the ExportEdgeConfig.ps1 and ImportEdgeConfig.ps1 scripts to specify the 32-byte string to use for password encryption and decryption. If you do not use the -key parameter, a default encryption key is used.

The ImportEdgeConfig.ps1 script is located in the \Scripts folder in your Exchange installation folder. The default location for this folder is C:\Program Files\Microsoft\Exchange Server\Scripts.

In the release to manufacturing (RTM) version of Microsoft Exchange Server 2007, when the configuration information is exported from the source Edge Transport server, the transport configuration object is not written to the intermediate XML file, and therefore, the configuration information for this object is not restored. The settings of the transport configuration object define server-wide e-mail transport settings for an Edge Transport server. After you import the intermediate XML file to the target server, the settings of the transport configuration object will have default values. To restore the Transport Configuration settings on the Edge Transport server, after the import process is complete, you must configure the settings by using the Set-TransportConfig cmdlet. For more information, see Set-TransportConfig.

New in Exchange 2007 SP1

Edge Transport servers that have Microsoft Exchange Server 2007 Service Pack 1 (SP1) installed include the transport configuration object in the information that is written to the intermediate XML file. Therefore, the settings of the transport configuration object on the target server will have the same values as the source server after the intermediate XML file is imported.


To restore an Edge Transport Server by using the ImportEdgeConfig.ps1 script

  1. Perform a clean installation of the Edge Transport server that has the same server name as the server you are restoring.

  2. Copy the ImportEdgeConfig.ps1 script to the root folder of your user profile on the server that you are restoring.

  3. Validate the configuration file and create an answer file that will provide server-specific information when the file is imported by running the following command in the Exchange Management Shell:

    Copy Code
    ./importedgeconfig.ps1 -cloneConfigData "C:\CloneConfigData.xml" -isImport $false -CloneConfigAnswer "C:\CloneConfigAnswer.xml"
  4. Open the answer file and modify any settings that are invalid for the server. If no modifications are required, the answer file will have no entries. Save your changes.

  5. Import the Edge Transport server configuration by using the ImportEdgeConfig.ps1 script. Run the following command in the Exchange Management Shell:

    Copy Code
    ./importedgeconfig.ps1 -cloneConfigData "C:\CloneConfigData.xml" -isImport $true -CloneConfigAnswer "C:\CloneConfigAnswer.xml"
    Replace C:\CloneConfigData.xml with the full path of the intermediate XML template that will be used by the ImportEdgeConfig.ps1 script. Replace C:\CloneConfigAnswer.xml with the full path of the XML answer file.

    The confirmation message, "Importing Edge configuration information succeeded," appears.

  6. Run the EdgeSync process to replicate Active Directory information to ADAM and perform regularly scheduled synchronization.

For More Information

For more information about how to use cloned configuration tasks for backup and recovery, see the following topics:

For more information about the EdgeSync process, see Subscribing the Edge Transport Server to the Exchange Organization.