July 2017
Intermediate to advanced
648 pages
31h 9m
English
When performing migrations or moving multiple mailboxes in bulk, it can be useful to move them in batches. The New-MoveRequest cmdlet provides a -BatchName parameter to group multiple mailbox moves into a single, logical collection. Let's say that we are migrating multiple mailboxes to several different databases and we want to easily track the mailbox moves based on a certain criterion. We can do this using the following command:
$mailboxes = Get-Mailbox -RecipientTypeDetails UserMailbox ` -Database DB1 | Get-MailboxStatistics | ` ? {$_.TotalItemSize -gt 2gb}$mailboxes | % { ` New-MoveRequest $_.Alias ` -BatchName 'Large Mailboxes' ` -TargetDatabase DB2 ` }
Here, we are retrieving all the mailboxes in the
Read now
Unlock full access