Wednesday, September 21, 2022

Create an MRS EndPoint with PowerShell

It is possible that after a Hybrid Configuration Wizard has been run, or some other setup items are configured, that it is not possible to configure an MRS EndPoint into your Exchange environment. These are important because they allow the gateway for Office 365 to connect to the local on premises Exchange Server and perform that migrations. MRS is short for ‘Mailbox Replication Service’.

Now, if you go into the MRS EndPoint options and hit the ‘+’ button you can certainly try and recreate it. It does however not let you specify an actual FQDN of a server to connect to. Instead it relies on the ‘autodiscover’ to perform the work which in some cases is not going to work, for whatever reason.

The screens I am talking about look like this.

So as you can see there is nothing there and when we click on the ‘+’ symbol we just get the option to add an MRS EndPoint by way of Autodiscover.

Here enter the PowerShell component. Firstly connect your PowerShell into Office 365 as shown on this link.

https://thecloudgeezer.com/connect-to-office-365-via-powershell

Then the following PowerShell commands will get your MRS EndPoint configured. Firstly use the ‘Get-MigrationEndPoint’ command to verify that none exist already.


Get-MigrationEndpoint | ft

Then using two commands, the first get the credentials that Office 365 will use, then the command to create the EndPoint itself as below.

$mrscreds = get-credential

New-MigrationEndpoint -name EndPoint1 -ExchangeRemoteMove -remoteserver mail.talisoft.com -Credentials $mrscreds

The results from that command will show you that it has been created correctly.

You can also then view the settings inside the EAC GUI in Office 365 to confirm also.

And with that you have managed to recreate the MRS EndPoint without the need for autodiscover. As a reference point the website from Microsoft that takes all those extra details of the PowerShell command a lot deeper can be found here.

https://docs.microsoft.com/en-us/powershell/module/exchange/move-and-migration/new-migrationendpoint?view=exchange-ps

Mark Rochester
Mark Rochesterhttps://thecloudgeezer.com
Mark currently works in the cloud space assisting large companies to migrate from either on premises to the cloud, or cloud to cloud. His experience with Enterprise migrations spans more than 25 years which basically makes him old. However, with all the oldness creeping up he still finds technology massively exciting. Please reach out for a chat anytime you would like. :-)

Related Articles

Microsoft 365 Discovery Report

If you are working with a Microsoft 365 tenant, whether it is for your own or for a client, it is often necessary to...

Active Directory (AD) HTML Report

This report creates a very nice looking HTML report that can be used directly to report to clients with not much editing. Run on...

Active Directory Report (ADRecon)

This report runs on any locally connected machine and creates a beautiful report on the Active Driectory structure that it finds, as you can...

Stay Connected

1,496FansLike
18,600FollowersFollow
240SubscribersSubscribe
- Advertisement -

Latest Articles