SOLVED

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

Brass Contributor

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 Enable-RemoteMailbox looks very helpful, the problem is that I need to run it on a local exchange servers that may be removed in the future. Is there other options available?

 

https://docs.microsoft.com/en-us/system-center/orchestrator/enable-remote-mailbox-hybrid

https://technet.microsoft.com/en-us/library/ff607313(v=exchg.160).aspx

3 Replies
best response confirmed by Carlos Gomez (Brass Contributor)
Solution

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.

Thanks Vasil,

 

Very helpful information.

Hi,

Please keep this in mind as well:

https://technet.microsoft.com/en-us/library/dn931280(v=exchg.150).aspx

 

 
Can third-party management tools be used?
 

The question of whether a third-party management tool or ADSIEDIT can be used is often asked. The answer is you can use them, but they are not supported. The Exchange Management Console, the Exchange Administration Center (EAC), and the Exchange Management Shell are the only supported tools that are available to manage Exchange recipients and objects. If you decide to use third-party management tools, it would be at your own risk. Third-party management tools often work fine, but Microsoft does not validate these tools.

 

So the Exchange server for management purpose is the best way to go...

 

BR

1 best response

Accepted Solutions
best response confirmed by Carlos Gomez (Brass Contributor)
Solution

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.

View solution in original post