DataString.InvalidSmtpDomainName(Domain) when running the Office 365 hybrid Configuration Wizard.
In this post, I will show case how you can remove the following error when you tried to install the Office 365 Hybrid Configuration Wizard.
![A screenshot of a cell phone
Description automatically generated](http://www.thatlazyadmin.com/wp-content/uploads/2019/07/a-screenshot-of-a-cell-phone-description-automati-9.png)
This error typically indicates that you have an Exchange server in your environment that is Offline or has not been decommissioned properly and is still listed in your environment.
You can verify all your Exchange Servers by running the following.
Get-ExchangeServer * |Fl
This will give you an output of all the Exchange Servers in your environment.
How to Resolve the Error?
To resolve the error, open ADSIEDIT and then connect to Configuration Container.
Then locate Exchange Administrative Group > Servers.
In the list of servers, you will see an Exchange Server which might have crashed or not properly decommissioned.
![A screenshot of a cell phone
Description automatically generated](http://www.thatlazyadmin.com/wp-content/uploads/2019/07/a-screenshot-of-a-cell-phone-description-automati-10.png)
Right click on the Exchange Server that should not be in the Exchange Org and click delete.
![A screenshot of a cell phone
Description automatically generated](http://www.thatlazyadmin.com/wp-content/uploads/2019/07/a-screenshot-of-a-cell-phone-description-automati-11.png)
Then click on Yes to confirm the deletion.
![A screenshot of a cell phone
Description automatically generated](http://www.thatlazyadmin.com/wp-content/uploads/2019/07/a-screenshot-of-a-cell-phone-description-automati-12.png)
Then click on Yes to confirm that all objects in the container will be deleted.
![A screenshot of a cell phone
Description automatically generated](http://www.thatlazyadmin.com/wp-content/uploads/2019/07/a-screenshot-of-a-cell-phone-description-automati-13.png)
You will notice that the Exchange Server container is no longer listed after the deletion.
![A screenshot of a cell phone
Description automatically generated](http://www.thatlazyadmin.com/wp-content/uploads/2019/07/a-screenshot-of-a-cell-phone-description-automati-14.png)
If you have multiple Active Directory Site, force an Active Directory Replication.
![](http://www.thatlazyadmin.com/wp-content/uploads/2019/07/word-image-88.png)
Give the replication a minute or two and then rerun the Hybrid Configuration Wizard.
The Wizard will now be completed without giving you the DataString.InvalidSmtpDomainName(Domain). Error.
![A screenshot of a social media post
Description automatically generated](http://www.thatlazyadmin.com/wp-content/uploads/2019/07/a-screenshot-of-a-social-media-post-description-a-5.png)
Hope this helps those who might have this error in the future.
Microsoft also posted about this error HERE.
![](http://www.thatlazyadmin.com/wp-content/uploads/2018/06/word-image-14.png)
Be First to Comment