We are installing the Hybrid Configuration Wizard (HCW) on the Exchange Server, but an error…
You want to find the RemoteHostName URL because you have a mailbox migration planned to Exchange Online. The RemoteHostName is the Migration Endpoint server. Moving a mailbox to Exchange Online with PowerShell needs the Remote Host Name filled in. You can find the Migration Endpoint server in a couple of ways. Let’s have a look into it and find the RemoteHostName URL.
Table of contents
What is happening
Move a mailbox or a mailbox batch from Exchange on-premises to Exchange Online. This time you like to do it with PowerShell instead of the Exchange Admin Center. The question is, what do you need to fill in the RemoteHostName field? See the ?? in the command.
PS C:\> New-MoveRequest -Identity "Maisha Lee@exoip.com" -Remote -RemoteHostName "??" -TargetDeliveryDomain "exoip.mail.onmicrosoft.com" -RemoteCredential (Get-Credential exoip\administrator)
In my example, the RemoteHostName will have the following value.
PS C:\> New-MoveRequest -Identity "Maisha Lee@exoip.com" -Remote -RemoteHostName "d07c851a-d141-2c91-f2b3-4bb87r5e51gg.resource.mailboxmigration.his.msappproxy.net" -TargetDeliveryDomain "exoip.mail.onmicrosoft.com" -RemoteCredential (Get-Credential exoip\administrator)
Hybrid Topology for Exchange configuration
You can find the remote server URL in a couple of ways. One of them is with Exchange Online PowerShell or the Exchange Admin Center in Exchange Online.
Important: Find the RemoteHostName URL in the Exchange Online environment and not the Exchange on-premises environment. You will not find the URL if connecting to the Exchange on-premises environment.
When running the Hybrid Configuration Wizard, you will get the option to select a Hybrid Topology.
- Exchange Classic Hybrid Topology: The URL will be your on-premises Exchange Server. For example, hybrid.company.com or mail.company.com. It’s the URL that you configured in the wizard.
- Exchange Modern Hybrid Topology: The URL will be a populated resource mailbox. For example, d07c851a-d141-2c91-f2b3-4bb87r5e51gg.resource.mailboxmigration.his.msappproxy.net. It’s configured when the Hybrid Agent gets installed in the wizard.
Find migration endpoint remote server URL in PowerShell
PS C:\> Get-MigrationEndpoint | Format-List Identity, RemoteServer
Identity : Hybrid Migration Endpoint - EWS (Default Web Site)
RemoteServer : d07c851a-d141-2c91-f2b3-4bb87r5e51gg.resource.mailboxmigration.his.msappproxy.net
Find migration endpoint remote server URL in Exchange Admin Center
Log in to the Exchange Admin Center (Exchange Online). Click recipients in the feature pane and follow with migration in the tabs. Click the + icon and select Migrate to Exchange Online.
Select the option Remote move migration (supported by Exchange Server 2010 and later versions). Click Next.
Press the + icon and select a user from the list. Click Next.
The value shown in the Remote MRS proxy server field is the RemoteHostName URL. The organization is configured with the Exchange Modern Hybrid topology. You can verify that by the resource.mailboxmigration.his.msappproxy.net URL.
Now that you did find the RemoteHostName URL, you can enjoy moving mailboxes to Exchange Online with PowerShell.
Read more: Complete migration batch with PowerShell »
In this article, you learned how to find the RemoteHostName URL for mailbox migration. You can find the Remote Host Name with Exchange Online PowerShell or the Exchange Admin Center in Exchange Online. The URL can look different as it depends on what you selected in the Hybrid Configuration Wizard, as shown in the article.
Did you enjoy this article? You may also like Hybrid Configuration Service may be limited. Don’t forget to follow us and share this article.