Move-mailbox -maxthreads option doesn’t work when combined with the import-csv command.

August 7, 2008

in Exchange, Microsoft


You need to migrate a set of users from one Exchange server/store to another.  Your team has given you a CSV file with a list users that are to be migrated.  In the CSV are two columns Alias & Database. When you run the command:

  • Import-CSV Move_Mailboxes.csv | ForEach {Move-Mailbox -Identity $_.Alias -TargetDatabase $_.Database -Confirm: $false -BadItemLimit 10 -MaxThreads 10 -PreserveMailboxSizeLimit}

Exchange executes the command one line at a time ignoring the “-maxthreads” option completely.



Never one to reinvent the wheel here is the solution.

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)