Exchange 2010 Move History

In order to calculate durations of migrations and throughput I have found the following PS commands.
The move history can be generated with this command. The important point is to specify the -IncludeMoveHistory parameter when we run Get-MailboxStatistics. As you can see, we pipe the output into a variable.
$MoveHistory = (Get-MailboxStatistics –Identity ‘dedwards’ –IncludeMoveHistory).MoveHistory
The variable contains all of the move reports that are available for the mailbox in an array. The most recent report is available in the first element in the array, so we can extract it as follows and pipe the output through the Out-File cmdlet to Notepad.
$MoveHistory[0] | Out-file –FilePath ‘c:\Temp\MRS-History.Log’ | Notepad ‘c:\Temp\MRS-History.Log’

Comments