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