Forum Discussion

Carlos Gomez's avatar
Carlos Gomez
Brass Contributor
May 22, 2017
Solved

Create mailbox online for new hire (on-premises) - powershell

Hi,   I'm looking a way to automate the creation of mailboxes for new hires when the account is on-premises and without need to way for the next sync with Azure AD to execute the action.   So far...
  • VasilMichev's avatar
    May 23, 2017

    New-/Enable-RemoteMailbox is what you should be looking at. The other method is to create the mailbox on-prem, then move it to ExO. Lastly, you can also just create a normal user account on-prem, sync it, and create the mailbox directly in ExO. In this scenario however, the on-prem AD will not have any knowledge about the mailbox, so the attribute values will be out of sync. This is the reason why every Hybrid, and even simple dirsync scenarios require you to have at least one Exchange server on-prem for management purposes.