Move-mailbox -maxthreads option doesn’t work when combined with the import-csv command.
Scenario:
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.
Solution:
Never one to reinvent the wheel Ben has already figured out the solution.



































