Posts RSS Comments RSS 237 Posts and 28 Comments till now

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.

Click here for the script…

Print This Post

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...
104 views

Trackback this post | Feed on Comments to this post

Leave a Reply