Cloud

Weekly Exchange PowerShell Tip: Batch Migrate Archives

​Batch move mailbox archives from text file:

$Mailboxes = Get-Content .\TextFile.txt
For ($Start = 0; $Start -lt $Mailboxes.length; $Start++) {New-MoveRequest –Identity `$Mailboxes[$Start] -ArchiveOnly -ArchiveTargetDatabase ‘MailboxDatabaseName’}

Leave a Reply