You are currently offline, waiting for your internet to reconnect

"DataStrings.InvalidSmtpDomainName(domain)" error when you run the Office 365 Hybrid Configuration wizard

PROBLEM
When you run the Office 365 Hybrid Configuration wizard (https://aka.ms/taphcw), you receive the following error message when the wizard tries to connect to your on-premises Exchange environment:
DataStrings.InvalidSmtpDomainName(domain)
Screen shot of the error message
Additionally, you experience the following symptoms:
  • When you run the Get-ExchangeServer * | FL command, the output returns an Exchange server that you don't expect to see. This server has either been decommissioned or is no longer available, and you don't intend to bring the server back online.
  • When you view the Hybrid Configuration wizard log file at %appdata%\Microsoft\Exchange Hybrid Configuration, you see the following:
    • An entry that resembles the following for the Exchange server that's no longer available. This entry confirms that the server doesn't return a domain name.
      <property type="System.String" value="CN=MailServer001,CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=Exchangetest,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=contoso,DC=com" name="DistinguishedName"/><property type="System.String" value="" name="Domain"/>
    • An entry that resembles the following for Exchange servers in your environment that are up and running. This entry shows that these servers return a domain name. 
      <property type="System.String" value="CN=MailServer002,CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=Exchangetest,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=contoso,DC=com" name="DistinguishedName"/><property type="System.String" value="contoso.com" name="Domain"/>
SOLUTION
Warning These steps require Active Directory Service Interfaces Editor (ADSI Edit). Using ADSI Edit incorrectly can cause serious problems that may require you to reinstall your operating system. We can't guarantee that problems that result from the incorrect use of ADSI Edit can be resolved. Use ADSI Edit at your own risk.

Use ADSI Edit to remove the Exchange server from the domain configuration: 
  1. Open ADSI Edit, and then connect to the Configuration container.
  2. Locate the following:
    CN=Servers, CN=Exchange Administrative Group (FYDIBOHF23SPDLT), CN=Administrative Groups, CN=Contoso,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=Contoso,DC=com 
  3. In the Servers container, remove the CN=<ServerName> object of the Exchange server that's no longer available in your environment.
  4. Confirm that the Exchange server is removed from the domain configuration. To do this, open the Exchange Management Shell, and then run the following PowerShell command:
    Get-ExchangeServer * | FL
    Make sure that the server is no longer listed in the output. You may have to wait for Active Directory replication to complete. 
  5. Rerun the Office 365 Hybrid Configuration wizard.
MORE INFORMATION
Still need help? Go to the Office 365 Community website or the Exchange TechNet Forums.
Properties

Article ID: 3132123 - Last Review: 01/06/2016 22:07:00 - Revision: 2.0

Microsoft Exchange Online

  • o365e o365m o365022013 o365 o365a hybrid kbgraphic kbgraphxlink KB3132123
Feedback