Enable-RemoteMailbox –ExchangeGuid is mandatory on UserMailbox

During a recent move from on-premise Exchange 2010 to Office 365 Hybrid, I wanted to create a new user in the AD and then enable a mailbox for it afterwards, this gave this error in Exchange 2010 Powershell:

Enable-RemoteMailbox user01@domain.com -RemoteRoutingAddress user01@companytenant.onmicrosoft.com
error:
ExchangeGuid is mandatory on UserMailbox.
Database is mandatory on UserMailbox.

After troubleshooting the issue, there where entries in the msEX… attributes of the user, that pointed to an old Exchange server.

Open the users object i ADUC Advanced mode, and look in Attribute Editor:

Find any entry beginning with msExh, and remove everything, so all msEx attributes are “”

Wait a little for AAD Connect to sync it’s stuff, or do a manual synchronization.

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close