Exchange GUID missing when creating remote mailbox in hybrid enviroment

%3CLINGO-SUB%20id%3D%22lingo-sub-1062252%22%20slang%3D%22en-US%22%3EExchange%20GUID%20missing%20when%20creating%20remote%20mailbox%20in%20hybrid%20enviroment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1062252%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20trying%20to%20find%20the%20best%20and%20easiest%20way%20to%20create%20new%20mailboxes%20in%20out%20hybrid%20environment.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%22The%20way%20it%20has%20been%20done%20here%20is%20that%20we%20have%20a%20created%20a%20%22cloud%20portal%22%20where%20we%20create%20the%20users%2C%20and%20this%20sync%20to%20our%20AD%20server%20which%20sync%20to%20Azure%20AD.%20When%20the%20new%20user%20have%20been%20synced%20to%20Azure%20AD%20and%20license%20added%2C%20the%20mailbox%20is%20created%20in%20the%20O365%20cloud.%20After%20this%20we%20use%20Powershell%20to%20get%20ExchangeGuid%20from%20O365%20mailbox%2C%20and%20logon%20to%20on-prem%20server%20where%20we%20run%20exchangeShell%20to%20enable%20the%20remote%20mailbox%20and%20set%20the%20ExchangeGuid.%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20read%20that%20the%20best%20practice%20would%20be%20to%20create%20the%20new%20user%20from%20the%20on-prem%20server%20ExchangeShell%20with%20%22New-RemoteMailbox%22%20so%20the%20on-prem%20creates%20the%20AD%20user%20object%2C%20then%20when%20synced%20to%20azure%20AD%20I%20assign%20the%20lisence%20and%20the%20mailbox%20is%20created.%20This%20works%20very%20good%20and%20I%20have%20made%20a%20script%20that%20do%20most%20of%20the%20work%20for%20me.%26nbsp%3B%3CBR%20%2F%3EBut%20the%20problem%20I%20have%20noticed%20is%20that%20the%20mailbox%20on-prem%20server%20never%20gets%20a%20ExchangeGUID%2C%20and%20I%20still%20have%20to%20get%20this%20and%20run%20the%20set%20command.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20a%20way%20around%20this%2C%20to%20get%20this%20to%20come%20up%20correct%20right%20away%3F%26nbsp%3B%3CBR%20%2F%3EIt%20has%20made%20me%20question%20if%20there%20is%20an%20%22easy%22%20way%20for%20this%20setup%20in%20hybrid%20environments%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1062252%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3E2010%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExchange%20Server%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHybrid%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1063215%22%20slang%3D%22en-US%22%3ERe%3A%20Exchange%20GUID%20missing%20when%20creating%20remote%20mailbox%20in%20hybrid%20enviroment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1063215%22%20slang%3D%22en-US%22%3E%3CP%3EThat's%20the%20expected%20behavior.%20You%20can%20copy%20the%20guid%20from%20the%20ExO%20Mailbox%20and%20populate%20it%20On-Prem%2C%20it's%20not%20that%20hard%20to%20automate.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1068062%22%20slang%3D%22en-US%22%3ERe%3A%20Exchange%20GUID%20missing%20when%20creating%20remote%20mailbox%20in%20hybrid%20enviroment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1068062%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F58%22%20target%3D%22_blank%22%3E%40Vasil%20Michev%3C%2FA%3E%26nbsp%3BThank%20you%20for%20the%20information.%20Then%20I%20understand%20that%20I%20wouldn't%20save%20so%20much%20time%20with%20creating%20the%20user%20on-prem%20as%20a%20remote%20mailbox%2C%20like%20I%20was%20hoping.%20%3A)%3C%2Fimg%3E%3CBR%20%2F%3EWill%20have%20to%20look%20at%20a%20way%20to%20automate%20it%20when%20I%20have%20the%20time%2C%20we%20have%20this%20issue%20with%20at%20least%2020%20of%20our%20costumers%20having%20Hybrid%20setup%2C%20so%20I%20would%20save%20some%20time%20not%20having%20to%20copy%20and%20set%20the%20Exhange%20GUID%20for%20them%20for%20every%20new%20user%20creation.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

I'm trying to find the best and easiest way to create new mailboxes in out hybrid environment.

 

"The way it has been done here is that we have a created a "cloud portal" where we create the users, and this sync to our AD server which sync to Azure AD. When the new user have been synced to Azure AD and license added, the mailbox is created in the O365 cloud. After this we use Powershell to get ExchangeGuid from O365 mailbox, and logon to on-prem server where we run exchangeShell to enable the remote mailbox and set the ExchangeGuid."

 

I read that the best practice would be to create the new user from the on-prem server ExchangeShell with "New-RemoteMailbox" so the on-prem creates the AD user object, then when synced to azure AD I assign the lisence and the mailbox is created. This works very good and I have made a script that do most of the work for me. 
But the problem I have noticed is that the mailbox on-prem server never gets a ExchangeGUID, and I still have to get this and run the set command. 

 

Is there a way around this, to get this to come up correct right away? 
It has made me question if there is an "easy" way for this setup in hybrid environments?

2 Replies
Highlighted

That's the expected behavior. You can copy the guid from the ExO Mailbox and populate it On-Prem, it's not that hard to automate.

Highlighted

@Vasil Michev Thank you for the information. Then I understand that I wouldn't save so much time with creating the user on-prem as a remote mailbox, like I was hoping. :)
Will have to look at a way to automate it when I have the time, we have this issue with at least 20 of our costumers having Hybrid setup, so I would save some time not having to copy and set the Exhange GUID for them for every new user creation.