TargetEwsUrl

Description

TargetEwsUrl is a Simply Migrate Job Parameter used to provide the Target Exchange Web Services URL. It is used to expedite connection to the Source Microsoft Exchange 2007 or above server avoiding AutoDiscover being used.

Dependencies

When using the TargetEwsUrl parameter, it is required that the Exchange Version is specified in TargetOptions.

How do I find my EWS Url?

If the Job Target is on premise Microsoft Exchange Server 2007 or above, you can issue a :

Get-WebServicesVirtualDirectory |Select name, *url* | fl

The result will appear in a format similar to this :

https://mail.simplymigrate.me/EWS/Exchange.asmx

Use the output as the parameter value. For example, when creating a job with a Microsoft Exchange 2010 Service Pack 2 Target the following Job creation would be used;

New-SmJob ...... -Target Exchange -TargetOutput user@domain.dom -TargetOptions Ex2010sp2 -TargetEwsUrl https://mail.simplymigrate.me/EWS/Exchange.asmx ........

Note: The above is a partial job example, just used to highlight the TargetEwsUrl parameter being used.

Office 365

When your data target is Microsoft Office 365, Simply Migrate provides helper cmdlets to make this process easier.

Get-SmDefaultO365EwsUrl

The result will appear in a format similar to this :

https://outlook.office365.com/EWS/Exchange.asmx

Use the output as the parameter value. For example, when creating a job with a Microsoft Office 365 Target the following Job creation would be used;

New-SmJob .... -Target Exchange -TargetOutput user@domain.dom -TargetOptions Ex2016 -TargetEwsUrl (Get-SmDefaultO365EwsUrl) ........

Note: The above is a partial job creation example used to reflect the usage of TargetEwsUrl only.

Note: We have not used the value in the TargetEwsUrl parameter, but instead used the helper cmdlet inline in the job.