shared malibox

Roger Roger 5,446 Reputation points
2022-11-28T10:53:03.41+00:00

Hi

I am using exchange 2016 Hybrid environment. i want to create shared mailbox in exchange onprem. is the below syntax correct.

New-Mailbox -Shared -Alias "test1" -Name "Test1 SharedMailbox" -FirstName "Test1" -LastName "SharedMailbox" -OnPremisesOrganizationalUnit "OU=MYOU,DC=contoso,DC=com" -SamAccountName "test1"  -UserPrincipalName "test1@contoso.com"  
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,358 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,480 questions
Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
1,985 questions
0 comments No comments
{count} votes

Accepted answer
  1. LilyLi2-MSFT 1,981 Reputation points
    2022-11-29T03:27:07.49+00:00

    Hi @Roger Roger ,

    1.Yes, you could create a shared mailbox on-premises and migrate to Online. Or create a regular mailbox, migrate to Online and convert it to shared.

    2.If you have Exchange 2013 CU21 or later, Exchange 2016 CU10 or later, or Exchange 2019, you can also use the following command to create or enable remote shared mailbox.
    when you don’t have an AD object in Active Directory. It will create the AD object in Active Directory and the Office 365 mailbox.

    New-RemoteMailbox -Shared -Name "Test SharedMailbox1" -Firstname "Test" -LastName "SharedMailbox1" -UserPrincipalName "Test.SharedMailbox1@exoip.com" -OnPremisesOrganizationalUnit "OU=Shared,OU=Company,DC=exoip,DC=local" -RemoteRoutingAddress Test.SharedMailbox1@exoip365.mail.onmicrosoft.com  
    

    when you already have an AD object in Active Directory.

    Enable-RemoteMailbox -Shared "Test SharedMailbox1" -RemoteRoutingAddress Test.SharedMailbox1@exoip365.mail.onmicrosoft.com  
    

    For more details, please refer to: create-office-365-shared-mailbox-exchange-hybrid
    Please Note: Since these web sites are not hosted by Microsoft, the links may change without notice. Microsoft does not guarantee the accuracy of this information.


    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.

    0 comments No comments

5 additional answers

Sort by: Most helpful
  1. Ostromogilsky, Leonid (GDC) 1 Reputation point
    2022-11-28T11:51:10.79+00:00

    Hi, first you should decide about mailbox location and user account location - I guess you would like to create fully onprem user and mailbox ,then the database parameter should be specified and password for new account:
    $password = Read-Host "Enter password" -AsSecureString
    New-Mailbox -UserPrincipalName chris@Company portal .com -Alias chris -Database "Mailbox Database 1" -Name ChrisAshton -OrganizationalUnit Users -Password $password -FirstName Chris -LastName Ashton -DisplayName "Chris Ashton" -ResetPasswordOnNextLogon $true
    more info here: https://learn.microsoft.com/en-us/powershell/module/exchange/new-mailbox?view=exchange-ps
    P.S.:
    It's really depending on a scenario, but usually in a hybrid env. it's easier to create Shared mailboxes online since it's free of charge.

    0 comments No comments

  2. Roger Roger 5,446 Reputation points
    2022-11-28T12:35:09.3+00:00

    there are two ways i see
    1 one is to create shared mailbox in onprem and migrate to online.
    2. create remote shared mailbox from onprem using remote-shared mailbox syntax

    i want to try the first way. is it not possible to create shared mailbox from powershell , so that i can migrate to online later. Do i need to create regular mailbox and convert it to shared.

    0 comments No comments

  3. Ostromogilsky, Leonid (GDC) 1 Reputation point
    2022-11-28T14:14:48.99+00:00

    ok. it's up to you. my experience: additional efforts for the first way. migration is a separate topic as different tools differently reqs - native hybrid supports it(no license required AFAIK). Still unclear about user account object - should it be onprem/hybrid?
    If you plan to become online and I would recommend to put shared mailboxes purely online.
    answers:
    "is it not possible to create shared mailbox from powershell" - Yes, it's possible. see previous comm. use example with "-shared" switch.
    "Do i need to create regular mailbox and convert it to shared." - You could do like this, but it's not a requirement.

    minimal difference (status of account and few exch attrs) in onprem environment between normal and shared.

    0 comments No comments

  4. Ostromogilsky, Leonid (GDC) 1 Reputation point
    2022-11-28T14:22:48.403+00:00

    by the way to create shared mailbox in the Exchange online and user accout onprem, use new-remotemailbox :
    https://learn.microsoft.com/en-us/powershell/module/exchange/new-remotemailbox?view=exchange-ps
    hope it helps

    0 comments No comments