So where are we now?
On the other hand, if we look at "recipients" and "mailboxes" in the EAC, no mailboxes are yet present in Exchange Online.
Note: for those not familiar with the interface, you simply click on the "Add" icon (green + sign) and search for the user.
Or with the EMS (Exchange Management Shell) using this Powershell cmdlet:
Add-MailboxPermission "Alannah Shaw" -user "admin" -AccessRights FullAccess
Second, we must create a .csv file that includes the names of the mailboxes to be migrated.
Here is the .csv file we will use, in this case with two test users:
Of course, any other email addresses would follow along with the values for Password and ForcePasswordChange.
Now that DirSync also synchronizes passwords, I have found that only the EmailAddress attribute is necessary.
The "targetaddress" attribute
Third, let's note the "targetaddress" attribute value of one of the mailboxes to be migrated:
Select "Migrate to Exchange Online":
Select the "Staged Migration" option.
Browse to the .csv file presented above:
Note the number of mailboxes to be migrated:
Enter the credentials of a user with sufficient rights to perform the operation:
Note: this is one point where Outlook Anywhere must be functional for the migration to succeed. This is why we took the time to verify that it would work in an previous post.
Enter a name for the batch:
Select the user who should receive a report on the process:
Note the progress of the migration:
Details can be seen here:
When the migration is finished, the status should display as follows:
Note: "total" and "synched" should be at 2 (in this case).
Now let's have a "before and after" comparison.
First, the mailboxes now appear in the EAC:
Second, the "targetaddress" value is now populated with the user's Exchange Online email address:
Now mail sent to Aisha Bhari will arrive onsite as usual but Exchange will see the populated "targetaddress" value and forward the messages to the mailbox in Exchange Online.
Of course, messages sent to a mailbox without the populated "targetaddress" attribute will not be forwarded.
This concludes the mailbox migration section.