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


  1. Ian McLean

    Was having this exact problem and this solved it, thanks!!

    1. Martin (Post author)

      Glad to hear that – thanks 🙂

      1. M P

        Cheers Martin! Sorted me out as well. Thanks much for this blog post!

        1. Martin (Post author)

          Glad to hear – thanks 🙂


Leave a Comment

Your email address will not be published.

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.