基于特定 OU 或 .CSV 文件将共享邮箱批量迁移到 Office 365 的 PowerShell 脚本

PowerShell script to bulk migrate Shared Mailbox to Office 365 based on certain OU or .CSV file

我是 运行 混合 Office 365 与 Exchange 2013 SP1 CU15。

我正在寻找一个 PowerShell 命令,以根据特定 OU or.CSV 输入将 OnPremise 共享邮箱迁移到 Office 365。

您好,您可以将此文件编辑到您的公司

$boxs = Get-Content your csv file
foreach ($box in $boxs){
    New-MoveRequest -Identity $box -Remote -RemoteHostName mail.domain.com -TargetDeliveryDomain domain.mail.onmicrosoft.com -RemoteCredential $cred

}