How To: Migrate On Premises Exchange Mailbox data to Mimecast.

Detailed Description

This How To will provide steps how the content of an On Premises Microsoft Exchange Mailbox can be migrated to Mimecast using the Simply Migrate Management Shell.
To ensure permissions have been correctly set, please follow the steps outlined in the following article;
Microsoft Office 365 and Microsoft Exchange Permissions

Create Job

Creating a job to migrate on premise Exchange to Mimecast, the following cmdlet syntax is used.

PS C:\Program Files\Simply Migrate> New-SMJob -Source Exchange -SourceInput user@SourceDomain.com -SourceOptions Ex2010sp2 -SourceEwsUrl 'https://mail.domain.com/EWS/Exchange.asmx' -SourceCredential $SrcCreds -Target Mimecast -TargetOutput user@TargetDomain.com -BatchId 1 -Tags "Mailbox Moves"

Description of parameters used;

But I have thousands to do ...

Do you know what is cooler than migrating one mailbox? Migrating thousands of mailboxes!
While there are many different ways to achieve this, below, we will show a simple approach using a CSV file with following information enclosed :

SourceMailbox
user@sourcedomain.com
user2@sourcedomain.com

… and so on.
On to a script to process all of the users in that CSV.


# get the content of the CSV (Your header columns are as per the above example of SourceMailbox
$users = Import-Csv -Path c:\temp\users.csv

#Grab the source and taarget credentials.
$SourceCredentials = Get-Credential -UserName sourcecreds@sourcedomain.com


foreach ($user in $users)
{
New-SMJob -Source Exchange -SourceInput $($user.SourceMailbox) -SourceOptions Ex2010sp2 -SourceEwsUrl 'https://mail.domain.com/EWS/Exchange.asmx' -SourceCredential $SourceCredentials -Target Mimecast -TargetOutput $($user.SourceMailbox) -BatchId 1 -Tags "Mailbox Moves"
}

Once you run the above script, it will prompt you for the source credentials and create the jobs. You’re ready to start processing.