Share via

shared malibox

Roger Roger 7,631 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 "******@contoso.com"  
Exchange Online
Exchange Online

A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.

Exchange | Exchange Server | Management
Exchange | Exchange Server | Management

The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.

Exchange | Hybrid management
Exchange | Hybrid management

The administration of a hybrid deployment that connects on-premises Exchange Server with Exchange Online, enabling seamless integration and centralized control.

0 comments No comments

Answer accepted by question author

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 "******@exoip.com" -OnPremisesOrganizationalUnit "OU=Shared,OU=Company,DC=exoip,DC=local" -RemoteRoutingAddress ******@exoip365.mail.onmicrosoft.com  

when you already have an AD object in Active Directory.

Enable-RemoteMailbox -Shared "Test SharedMailbox1" -RemoteRoutingAddress ******@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.

Was this answer helpful?

0 comments No comments

5 additional answers

Sort by: Most helpful
  1. 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

    Was this answer helpful?

    0 comments No comments

  2. 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.

    Was this answer helpful?

    0 comments No comments

  3. Roger Roger 7,631 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.

    Was this answer helpful?

    0 comments No comments

  4. 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.

    Was this answer helpful?

    0 comments No comments

Your answer

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