Remote Mailbox Command

Rising Flight 5,216 Reputation points
2021-08-19T08:57:04.383+00:00

Hi All

I am using exchange 2016 hybrid environment,

  1. lets say I create user account in AD and i use the below syntax for remote mailbox creation.
    Enable-RemoteMailbox -id "user1" -RemoteRoutingAddress "******@mydomain.mail.onmicrosoft.com" -alias user1
  2. In exchange 2016 ECP i can see the option Office365 mailbox, how do i create it from exchange onprem powershell. Please guide me with the syntax.
    124665-office365mailbox.jpg

Whats the difference in both the steps i.e Point1 and Point 2. Are both the same ways of creation is there any difference.

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,171 questions
Exchange Exchange Server Management
Exchange Hybrid management
{count} votes

2 additional answers

Sort by: Most helpful
  1. KyleXu-MSFT 26,396 Reputation points
    2021-08-20T01:28:42.163+00:00

    @Rising Flight

    They are the same thing, and the ”RemoteRecipientType“ of mailboxes they create is "ProvisionMailbox".
    124818-qa-kyle-09-26-14.png

    ECP help you create an AD account first, then enable remote mailbox for this AD account, you could think it as a script which looks like just need one step.

    It is similar to creating a User mailbox in ECP, ECP will create AD account for you automatically.


    If the response 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

  2. Rising Flight 5,216 Reputation points
    2021-08-20T05:34:06.36+00:00

    i am using the below syntax i.e first i am creating an account in AD and then i am using the below syntax.

    Enable-RemoteMailbox -id "user1" -RemoteRoutingAddress "******@mydomain.mail.onmicrosoft.com" -alias user1

    is it possible that from exchange onprem powershell that i create AD account and execute Remotemailbox syntax in one syntax. please guide me

    0 comments No comments

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.