Shared mailboxes create in Microsoft 365 for Hybrid environment

 




1.    Create a shared mailbox and Convert the shared mailbox to a regular mailbox by using the Exchange admin center in Exchange Online. To do this, follow these steps:



    1. Open the Exchange admin center in Exchange Online
    2. Click recipients, and then click share.
    3. Select the shared mailbox, and then click Convert.
    4. On the Warning page, select Yes to convert the shared mailbox. 


2.    Create an on-premises object for the cloud mailbox by using the New-RemoteMailbox cmdlet in the Exchange Management Shell. Open Exchange Management Shell and Run this command

CMD: New-Remotemailbox sharedmailbox@contoso.com -Remoteroutingaddress sharedmailbox@contoso.mail.onmicrosoft.com

CMD: Enable-RemoteMailbox "shared mailbox" -RemoteRoutingAddress "sharedmailbox@contoso.mail.onmicrosoft.com"

 

3.    Set the ExchangeGuid property on the new on-premises object that you created in step 2 to match the cloud mailbox. To do this, follow these steps:

A.    Connect to Exchange Online by using a remote session of Windows PowerShell.

For more information about how to do this, see Connect to Exchange Online PowerShell.

                  connect to exchange

    II.        cmd: Set-ExecutionPolicy RemoteSigned

   III.        cmd: $UserCredential = Get-Credential

  IV.        cmd: $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection

    V.        cmd: Import-PSSession $Session -DisableNameChecking

 

B.    Use the Get-Mailbox cmdlet to retrieve the value of the ExchangeGuid property of the cloud mailbox. For example, run the following command:

CMD: Get-Mailbox <MailboxName> | FL ExchangeGuid



A.    Open the Exchange Management Shell on the on-premises Exchange server.

B.    Use the Set-RemoteMailbox the cmdlet to set the value of the ExchangeGuid property on the on-premises object to the value that you retrieved in step 3b. For example, run the following command:

CMD: Set-RemoteMailbox <MailboxName> -ExchangeGuid <GUID>

4.    Wait for directory synchronization to occur. Or, force directory synchronization.

1.    For more information, see Synchronize your directories.

5.    Make sure that the Office 365 user object is displayed as Synced with Active Directory.

6.    Move the mailbox from Exchange Online to the on-premises environment.

1.    For more information, see Move mailboxes between on-premises and Exchange Online organizations in hybrid deployments.



 

7.    Convert the mailbox to a shared mailbox by using the Set-Mailbox cmdlet in the Exchange Management Shell. For example, run the following command:

 

1.    CMD: Set-Mailbox <MailboxName> -Type Shared 

8.    Move the mailbox from the on-premises environment to Exchange Online.

For more information, see Move mailboxes between on-premises and Exchange Online organizations in hybrid deployments.



 

No comments

Powered by Blogger.