mailbox creation

Rising Flight 4,596 Reputation points
2021-04-16T14:02:28.827+00:00

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@Company portal .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

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,558 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,653 questions
{count} vote

Accepted answer
  1. Joyce Shen - MSFT 16,666 Reputation points
    2021-04-19T02:13:53.453+00:00

    Hi @Rising Flight

    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.
     

    1 person found this answer helpful.
    0 comments No comments

6 additional answers

Sort by: Most helpful
  1. Ashok M 6,516 Reputation points
    2021-04-18T13:13:09.667+00:00

    Hi @Rising Flight ,

    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://learn.microsoft.com/en-us/powershell/module/exchange/new-remotemailbox?view=exchange-ps
    Enable-RemoteMailbox
    https://learn.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.

    1 person found this answer helpful.
    0 comments No comments

  2. Owen Murr 151 Reputation points
    2021-04-16T14:06:53.617+00:00

    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.

    0 comments No comments

  3. Vasil Michev 107.3K Reputation points MVP
    2021-04-16T14:49:32.163+00:00

    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.

    0 comments No comments

  4. Rising Flight 4,596 Reputation points
    2021-04-16T22:52:56.503+00:00

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


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.