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 (272k 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

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 3 days ago by Daniel (100 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 (140 points)
0 votes
1 answer

https://www.adaxes.com/script-repository/remove-all-group-memberships-for-a-user-account-s33.htm I found this script but it only removes 365 groups, security groups, and ... user from all shared mailboxes they are a member of when disabling a user. Thanks!

asked Sep 8, 2023 by silicondt (60 points)
0 votes
1 answer

Is there a way to set this setting to show then end user multiple OUs?

asked May 4, 2023 by mightycabal (1.0k points)
3,349 questions
3,050 answers
7,791 comments
545,066 users