SourceEwsUrl

Description

SourceEwsUrl is a Simply Migrate Job Parameter used to provide the Source 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 SourceEwsUrl parameter, it is required that the Exchange Version is specified in SourceOptions.

How do I find my EWS Url?

If the Job Source 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 Source the following Job creation would be used;

New-SmJob -Source Exchange -SourceInput user@domain.dom -SourceOptions Ex2010sp2 -SourceEwsUrl https://mail.simplymigrate.me/EWS/Exchange.asmx ........

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

Office 365

When your data source 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 Source the following Job creation would be used;

New-SmJob -Source Exchange -SourceInput user@domain.dom -SourceOptions Ex2016 -SourceEwsUrl (Get-SmDefaultO365EwsUrl) ........

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

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