0 votes

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 new users from sites which already have been migrated directly at the onboarding workflow. For this goal we created a step in the business rules which looks at the department number.

  1. if it is set to a number already migrated,
    1. Do an AD Connect sync
    2. a Microsoft 365 license will be applied (group-based)
    3. a script runs with which migrates the mailbox to exchange online
      1. $Context.TargetObject.CreateMoveMailboxToM365Request($remoteServer, $targetDeliveryDomain, $badItemLimit, $largeItemLimit)

However we lack the response if the migration has been successfull or if there have been any errors. is it possible to set an alerting / sending out a mail if the batch is not succesful?

Thanks and KR Christian

by (40 points)

1 Answer

0 votes
by (279k points)

Hello Christian,

The script you are executing does not provide any output as it only initiates the move. That is just the way Exchange mailbox moves work. You can use the following script from our repository to check mailbox move status: https://www.adaxes.com/script-repository/get-mailbox-move-status-in-exchange-online-s482.htm.


Thanks for your reply! Ok, I thought it would execute a New-MigrationBatch in the background. with this a parameter for notifying could be set.

I'll check the provided Script to see if we could get an alerting there. Have to play around with the different staus messages. Thanks and KR Christian

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 (210 points)
0 votes
1 answer

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 ... solution from our side? Please let me know how to configure this. Best Regards Marco Jandl

asked Apr 6, 2022 by marco_jandl (60 points)
0 votes
1 answer

Hi, is it possible to export automatically the exchange online mailbox of a user to a .PST file on our archive server before the user is deleted? Kind regards, Fabian

asked Oct 26, 2023 by fabian.p (380 points)
0 votes
1 answer

When creating a hybrid user mailbox with a Business Rule, after user creation, the remote routing address of the mailbox is set to the users email alias. How do I set it to the 365 address username@ourdomain.mail.onmicrosoft.com

asked Apr 13, 2022 by john.harding (70 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)
3,434 questions
3,130 answers
546,294 users