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

by (308k points)
0 votes

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

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 Nov 22, 2024 by msheppard (880 points)
0 votes
1 answer

I know Adaxes has a module in it that uses e-mail verification in the password self-service policies. Can the verification system be used for anything other than an AD password ... to have a custom task run, but only after e-mail or text verification? Thanks!

asked Jul 27, 2015 by rlemaster (20 points)
0 votes
0 answers

I may have missed this but is it possible after modifying the membership of a group to produce a log of the changes made? It would be nice to have a confirmation of which users were added/removed from a group after the change took place. Thanks!

asked Oct 11, 2012 by VTPatsFan (610 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, 2024 by lramirez (20 points)
0 votes
1 answer