0 votes

Hi Team!

I'm currently looking for a solution to create an exchange mailbox on-premise, sync it to Office 365 and assign the license in one business rule.

I didn't find any powershell script that is working for me.

The Azure AD Sync, creating a mailbox on premise and assigning the license is already working fine. I'm stuck at the point where I need to migrate the mailbox to Exchange Online. I configured a business rule running all the custom commands(ps scripts).

Is there any solution from our side? Please let me know how to configure this.

Best Regards Marco Jandl

by (60 points)

1 Answer

0 votes
by (288k points)

Hello Marco,

Do we understand correctly that you need to have remote mailboxes for users? If that is correct, you do not need to follow the migration procedure. It is already outdated and is no longer recommended by Microsoft. To achieve the desired in Adaxes you only need to assign a Microsoft 365 license with access to Exchange Online to a user. Out of the box, Adaxes always enables remote mailboxes in such cases. For more details about configuring the feature, have a look at the following help article: https://www.adaxes.com/help/EnablingDisablingRemoteMailboxes.

If you still need to move mailboxes, have a look at the following script from our repository: https://www.adaxes.com/script-repository/move-mailbox-tofrom-microsoft-365-s579.htm.

0

Hello!

Thanks for the quick answer.

Creating a remote mailbox is not possible since the users are created in Active Directory, not in EAC.

Moving mailboxes as described here does not work for me either. What rights/ run as user should be used for that custom command? Error is attached.

Maybe you know something else to migrate the mailboxes.

We are working in a hybrid environment with the users on-premise. (synced to the cloud) So the default process would be:

  • Create User with Adaxes Business Rule
  • Create Mailbox with Adaxes Business Rule
    • run AzureAD Sync Delta
    • move mailbox to Office 365 Cloud Services
    • Assign Office 365 License to user

2022_04_06_15_29_36_Run_Script_Test3_Marco.png 2022_04_06_15_38_30_WuP_Create_Exchange_Mailbox_and_Sync_User_to_Cloud_Adaxes_Administration_Con.png

0

Hello Marco,

You do not need to create a user in EAC to achieve the desired. The process we mentioned in the previous post will work just fine. No scripts or mailbox migrations are required. Please, give it a try. For information on how to automate assignment of Microsoft 365 licenses, have a look at the following tutorial: https://www.adaxes.com/tutorials_AutomatingDailyTasks_AutomaticallyAssignOffice365Licenses.htm.

0

So creating the mailbox and assigning the Office 365 license is all I have to do?

Can I check the status or is there a logging file where I can check if the mailbox is migrating to Cloud?

I will try it and let you know if it worked.

regards Marco

0

Hello Marco,

There will be no migration at all as it is not required. What you can check is the Recipient Type Details property. It should be displayed as Remote User Mailbox in Adaxes.

Assigning a Microsoft 365 license with access to Exchange Online will create a mailbox accordingly. At the same time Adaxes will enable a remote mailbox in on-premises Exchange. Later on AAD Connect will just match the pieces together. That is exactly the approach Microsoft recommends for creating remote mailboxes in a hybrid Exchange environment.

0

Hello,

so now I have created a mailbox and assigned the O365 license and the user in Adaxes looks like this:

2022-04-06 16_48_54-Office - Adaxes Administration Console 2021.1.png

In MS 365 Admin Center the following status is shown:

2022-04-06 16_49_38-Home - Microsoft 365 admin center and 1 more page - \[InPrivate\] - Microsoft​ Edg.png

I suppose I just have to wait now until everything is synced properly?

Best regards Marco

0

Hello Marco,

That is not correct. Enabling a remote mailbox should be performed instantly. You need to use the scripts from the following article: https://www.adaxes.com/help/EnablingDisablingRemoteMailboxes. Make sure that the feature is enabled and a remote routing address template is specified.

Also, what exactly do you mean by created a mailbox? Please, provide all the exact steps you took with screenshots. you can post them here or send at support@adaxes.com.

0

Hello,

seems like a Remote Mailbox is NOT enabled instantly.. Every time I create a new user and mailbox with Adaxes Business Rules, the system is creating a "UserMailbox".

Here are the settings:

Global Settings: 2022-04-07 11_18_39-khq-adm1 - Remote Desktop Connection.png

Creation Steps: 2022-04-07 12_13_11-WuP - Create Exchange Mailbox and Sync User to Cloud - Adaxes Administration Con.png

Business Rule Settings: 2022-04-07 11_18_03-Add Action.png

For now I'm just creating a mailbox (with the default business rule), run a dirsync with CloudAD and after that I activate the MS 365 account and assign location and license. Unfortunately the website is half-german however. Running the business rule, following error is showing up: 2022-04-07 12_24_49-Human Resources - Austria — Mozilla Firefox.png

There must be something wrong on my side, otherwise I can't explain why it is not working like you told me.

Best Regards Marco

0

Hello Marco,

The step for mailbox creation is exactly the reason why the desired behaviour fails. The action creates a mailbox in on-premises Exchange. It is not possible to create a remote mailbox in this case. All you need to do is remove the action from the workflow. There should be nothing in the entire workflow related to Exchange (both on-premises and online) except for Microsoft 365 license assignment.

0

It just worked. Thanks for helping me out!

Have a nice day!

BR Marco

Related questions

0 votes
1 answer

Hi All, I'm trying to use the powershell script provided here: https://www.adaxes.com/script-repository/move-mailbox-tofrom-microsoft-365-s579.htm Unfortuntately when executing ... credentials but I do not know why this error is happening. Thanks in advance

asked Aug 1, 2023 by curtisa (290 points)
0 votes
1 answer

Hello, we are in a migration phase from Exchange onPrem to Exchange Online. Since not all of our sites will be migrated at one time we are looking into a way to migrate ... an alerting / sending out a mail if the batch is not succesful? Thanks and KR Christian

asked Mar 21 by User0815 (50 points)
0 votes
1 answer

I'm testing making changes to a mailbox that is synced between AD and Office365. During changes updates are not reflected back. I'm prompted that the replication with AD Connect has ... in the web interface. If I go to the console I can see the change.

asked Aug 6, 2020 by ComputerHabit (790 points)
0 votes
1 answer

Hello Adaxes Support, I couldn't find a script to enable MessageCopyForSentAsEnabled for a shared mailbox, do you have a script for me to do that?

asked May 22 by dominik.stawny (280 points)
0 votes
1 answer

Recently, Microsoft deprecated use of the remote PS sessions using version 1. We have since converted all of our scripts to version 2, but our nightly staff ... { # Close the remote session and release resources Disconnect-ExchangeOnline -Confirm:$false }

asked Nov 2, 2022 by MShep (80 points)
3,542 questions
3,233 answers
8,227 comments
547,808 users