0 votes

We are miragrating out on-prem mailboxes to O365 using the script found with in Adaxes. I was wondering if there is a way to also include an email that sends to say if the mirgration completed with errors or not.

by (1.3k points)

1 Answer

0 votes
by (289k points)

Hello,

Have a look at the following script from our repository: https://www.adaxes.com/script-repository/get-mailbox-move-status-in-exchange-online-s482.htm. If you need the script to send an email notification instead of outputting the move request status into the execution log, replace this line in the script:

$Context.LogMessage("Move request status: " + $moveRequest.Status, "Information")

with something like the following:

$Context.SendMail("recipient@company.com", "Move mailbox status", "Mailbox move status: $moveRequest.Status", $Null)

For details about using the $Context.SendMail method, have a look at the following SDK article: http://adaxes.com/sdk/?ExecuteScriptContextClass.html.

Related questions

0 votes
1 answer

On scheduled tasks, business rules, and custom commands, inside an if statement, you have the option for it to be "AND" or "OR" in the condition. Can there be a ... a bunch of computer accounts to be deleted. We think this would be a good safety measure.

asked Mar 22, 2021 by mark.it.admin (2.3k points)
0 votes
1 answer

We have a series of transforms we use for users including moving to different OU's. Is there a way to open the user's object after the command completes much in the same way a user creation does?

asked 3 days ago by msheppard (470 points)
0 votes
1 answer

Is there any way to add a warning message when someone tries to add a group member that already is member? Checked config but found nothing related. Added a new member that ... the group and there is no warning, and the logs show that the task was completed.

asked Jul 9 by lramirez (20 points)
0 votes
1 answer

I am unsure how to deal with this because of how Adaxes treats one identity account as two different objects, an AD and AzureAD user account, and both has different last logon values. What is a good way to combine the data?

asked Apr 22 by Daniel (160 points)
0 votes
1 answer

I’m looking for a way to take a unique number from Adaxes and use part of it to create an employee ID for the AD attribute field.

asked Dec 25, 2023 by cewilson (190 points)
3,552 questions
3,242 answers
8,243 comments
547,828 users