question

RisingFlight-7863 avatar image
1 Vote"
RisingFlight-7863 asked joyceshen-MSFT commented

mailbox creation

Hi Experts

i am using exchange 2016 hybrid environment. I am not much familiar with exchange 2016. I want to create a remote(regular mailbox and shared mailbox)
from exchange onprem when i click on mailbox tab--Add Office365 mailbox. is this remote regular mailbox.

or I will create AD account and i will use the below syntax will it create remote regular mailbox.
Enable-RemoteMailbox "samaccountname" -RemoteRoutingAddress "samaccountname@contoso.mail.onmicrosoft.com

how do i achive the same for shared mailbox

What is the best way of creating mailboxes, create the mailbox in onprem and migrate to cloud or use remote mailbox

office-exchange-server-administrationoffice-exchange-online-itprooffice-exchange-server-itpro
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @RisingFlight-7863

Do suggestions below help?

0 Votes 0 ·
joyceshen-MSFT avatar image
1 Vote"
joyceshen-MSFT answered

Hi @RisingFlight-7863

Yes, you could use the command above to enable the remote mailbox for your on-prem AD account

 Enable-RemoteMailbox  -Identity "testregularmailbox" -RemoteRoutingAddress "testregularmailbox@contoso.mail.onmicrosoft.com

For shared mailbox, we could use the command below to create it directly:

 New-Remotemailbox -Shared -Alias test_shared -Name "Test Shared" -FirstName Test -LastName Shared -OnPremisesOrganizationalUnit "OU=MyOrg,DC=domain,DC=com" -SamAccountName test_shared -UserPrincipalName test.shared@domain.com

When you create a shared mailbox like this, there is no password and the account will be disabled, as it should be. It will also be visible in both the on-premises EAC and the online one. Shared mailboxes created correctly do not need any license, since the account is disabled and they cannot be access directly.

For more information about shared mailbox in Exchange hybrid and why we need to create them in such way: Users in a hybrid deployment can't access a shared mailbox that was created in Exchange Online


If an Answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
 

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Owen-Murr avatar image
0 Votes"
Owen-Murr answered Owen-Murr edited

I originally read your question wrong.

So I would just create a shared mailbox the same way you create a normal mailbox but choose to create a shared mailbox. You dont need to create a AD account for a shared mailbox.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

michev avatar image
0 Votes"
michev answered michev edited

Simply use the -Shared switch parameter.

Note: This switch is available only in Exchange 2013 CU21 or later and Exchange 2016 CU10 or later. To use this switch, you also need to run setup.exe /PrepareAD. For more information, see KB4133605.

The Shared switch specifies that the mailbox in the service should be created as a shared mailbox. You don't need to specify a value with this switch.

You can't use this switch with the Room or Equipment switches.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RisingFlight-7863 avatar image
0 Votes"
RisingFlight-7863 answered Owen-Murr commented

If i create a remote mailbox i.e for regular mailbox and shared mailbox it will save my time if i am not wrong

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Yes, if you want to create a shared mailbox just create it as a remote mailbox.

0 Votes 0 ·
RisingFlight-7863 avatar image
0 Votes"
RisingFlight-7863 answered Owen-Murr commented

i have created an AD account in exchange onprem with account testregularmailbox

using the below syntax can i create remote regular mailbox.( i will use the below syntax in exchange onprem will it work)
Enable-RemoteMailbox "testregularmailbox" -RemoteRoutingAddress "testregularmailbox@contoso.mail.onmicrosoft.com

How can i create a shared remote mailbox. i will create an AD account lets says testsharedaccount. what will be the syntax to create remote shared mailbox.

Which is the recommended way to create regular mailboxes and shared mailboxes i.e create it onprem and migrate to cloud or remote mailbox.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

You will want to login to your exchange admin portal, choose mailboxes > Shared Mailboxes and then click on the + icon to create a new mailbox. (iirc).

You don’t need to create an AD account for a shared mailbox as shared mailboxes don’t have AD accounts linked to them.

See here for more detailed information from Microsoft.


0 Votes 0 ·
AshokM-8240 avatar image
1 Vote"
AshokM-8240 answered

Hi @RisingFlight-7863 ,

You can use Exchange Admin center or EMS in Exchange 2016 to create and manage Remote mailboxes (both regular and shared).

If you create AD account first, then you have to use Enable-RemoteMailbox command. Else, you can use New-RemoteMailbox which will create AD account and remote mailbox.

Secondly, shared mailboxes can also be created the same way. You just have to mention -Shared parameter while using Enable-RemoteMailbox/New-RemoteMailbox. For this to work, Exchange 2016 should be atleast Cumulative Update 10 or later. Also setup.exe /PrepareAD should have been run with that CU.

Recommended way is to create remote mailboxes from on-premise because this will write all required Exchange attributes on the user's AD account. If its directly created in Office365, then these attributes will not be updated which will cause them not displaying in on-premise. This could also cause the inventory of your on-premises AD Connect domain and Azure AD domain to show incorrect data and conflicting information.

After you run the commands in exchange onpremise, run AD connect delta sync which will make the mailboxes available in Office365 then assign the license for regular mailboxes.

Managing Shared mailboxes:
https://support.microsoft.com/en-us/topic/cmdlets-to-create-or-modify-a-remote-shared-mailbox-in-an-on-premises-exchange-environment-9e83fb59-c001-729c-a4c0-b2964c154b49
New-RemoteMailbox:
https://docs.microsoft.com/en-us/powershell/module/exchange/new-remotemailbox?view=exchange-ps
Enable-RemoteMailbox
https://docs.microsoft.com/en-us/powershell/module/exchange/enable-remotemailbox?view=exchange-ps

If the above suggestion helps, please click on "Accept Answer" and upvote it.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RisingFlight-7863 avatar image
0 Votes"
RisingFlight-7863 answered

I will create AD accounts for regularmailbox and shared mailbox in onprem AD‌

i will use the below syntax for regular mailbox in exchange onprem.
Enable-RemoteMailbox "testregularmailbox" -RemoteRoutingAddress "testregularmailbox@contoso.mail.onmicrosoft.com

for shared mailbox is the below syntax correct, will the AD account in onprem get disabled when i use the below syntax in exchange onprem.
Enable-RemoteMailbox -shared "testsharedmailbox" -RemoteRoutingAddress "testsharedmailbox@contoso.mail.onmicrosoft.com

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.