Connecting to a target Exchange server

Once you installed CodeTwo Exchange Migration and configured a source environment, it is time to create a connection to your target Exchange server.


The program uses Exchange Web Services (EWS) to connect to a target Microsoft Exchange Server environment.

To configure a target connection, you need to launch the target server connection wizard. There are two ways to do that:

  • Click the Settings (Exchange Migration settings button temp) button on the Defined target server connections card and choose New (Fig. 1.).
  • Open the migration job wizard and go to the Target mailboxes step. Choose Add new target connection from the drop-down Target server list to launch the wizard.

Exchange Migration - new target connection
Fig. 1. Creating a new target server connection.

Either way, the target server connection wizard will open. In the first step (Server connection) you need to choose whether to automatically detect a target Exchange server (Fig. 2.) or to define it manually, by using its FQDN or IP address. If you want to connect to the target server from the same domain, there is not much to do: the Autodiscover function will locate it automatically.

Exchange Migration target connection wizard 1
Fig. 2. Opening the target server configuration window.

On the other hand, if you want to set up a target server from a different domain, the Autodiscover function will not work. You need to enter the server's location manually. To do that, select Configure connection manually (Fig. 3.) and enter the full Server name (FQDN) or IP address. You do not need to fill the EWS URL field - it will be filled automatically with the selected server's data.


We recommend using the FQDN of your target server when you configure the connection manually. If you want to use the IP address, you have to configure PowerShell Virtual Directory in IIS for basic authentication, as described in this article. Otherwise, the program will not be able to assign impersonation rights and to automatically create mailboxes.

Exchange Migration target connection wizard 1a
Fig. 3. Using FQDN to establish a target server connection.

In the next step (Admin's credentials, Fig. 4.) you need to enter the UPN of your target server's administrator. You can do it manually or, if you set up a trust between domains, automatically - via the Browse button.

Exchange Migration target connection wizard 2
Fig. 4. The Admin's credentials step.


Make sure that your administrator has his UPN configured. Otherwise, the program may not work correctly and errors are likely to appear.

Once you choose Browse, you will be able to pull an appropriate UPN from your Active Directory. By clicking Locations, you can determine the domain from which the target server administrator's UPN will be imported (Fig. 5.).

Selecting the administrator's UPN from Active Directory.
Fig. 5. Selecting the administrator's UPN from Active Directory.


Please note that the Browse button can only be used to list the UPNs of administrators from the same domain or different trusted domains. This option is unavailable for untrusted domains. Therefore, if you want to select a UPN from an untrusted domain, you will have to type it in manually.

After choosing a domain, enter your administrator's name and select Check Names - your user will be listed automatically. Once you confirm the configuration, the administrator's UPN will be displayed in the wizard (Fig. 6.). Enter the admin's password. Ensure that the Target domain field is filled properly.

Exchange Migration target connection wizard 2a
Fig. 6. Providing admin's credentials.

Move on to the next step (Configuration) and click Configure. The wizard will set the connection with your target server, assign impersonation rights to users' mailboxes, and try to enumerate target mailboxes using LDAP (Fig. 7.).

Exchange Migration target connection wizard 3
Fig. 7. Successful connection with a target server.

Additionally, this last step offers a couple of other configuration options (see Fig. 7.): you can create a new throttling policy with higher throughput or change the EWS request size limit. You can also check the administrator's impersonation rights for a selected user mailbox on your target server - simply click the Test link to open the mailbox selection window (Fig. 8.). Choose a target mailbox and run the test.

Exchange Migration target test impersonation
Fig. 8. Impersonation rights' test window.

When your configuration is successfully completed (as shown in Fig. 7.), click Finish to save it and exit the wizard.


If necessary, you may reconfigure your target connection by clicking the Settings (Exchange Migration settings button temp) button in the upper-right corner of the Defined target server connections card (Fig. 9.).

Exchange Migration defined target connection
Fig. 9. Defined target server connections.

See next

Configuring a migration job

Was this information useful?