Unable to use -Max threads in mailbox movement script - Exchange 2007

Answered Unable to use -Max threads in mailbox movement script - Exchange 2007

  • Friday, November 23, 2012 5:28 PM
     
      Has Code
    Hi Team,

    We are moving bulk mailboxes with the script. The input file has alias and target mailbox but when we are using for loop each time it will process only single mailbox.

    Can i know a logic where it accepts the same input file and move mailboxes parallely. 


     Import-CSV users.csv | foreach {Get-Mailbox $_.alias | Move-Mailbox -MaxThreads 20 -BadItemLimit 1000 -confirm:$false  -TargetDatabase $_.target -ReportFile $REPORT_FILE_XML} 




    Ahmed Ali

All Replies