Thursday, September 21, 2023

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.

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 -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.

Mark Rochester
Mark Rochester
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

Stop Microsoft Teams Sprawl

Anybody that has come into an organization and looked at the Teams Admin Center, had a heart attack because there are so many Teams...

Microsoft 365 Workload Activity Report

Well that's a pretty boring title and an even more boring name for a script. However the output is definitely not boring as it...

Migrate GoDaddy M365 Email to a Full M365 Tenant

We do come across this scenario whereby the GoDaddy M365 Email option has been selected when you register your domain and you end up...

Stay Connected

- Advertisement -

Latest Articles