Complete el lote de migración con PowerShell
¿Cómo completar un lote de migración con PowerShell en Exchange Online manualmente? Creó nuevos lotes y los buzones de correo están sincronizados entre Exchange On-Premises y Exchange Online. Para finalizar la migración, debe completar los lotes. Después de eso, el destino del buzón está en Exchange Online. En este artículo, aprenderá cómo completar una migración por lotes en Office 365 con PowerShell.
¿Qué sucede si desea completar un buzón individual del lote de migración? Lea más en nuestro artículo sobre cómo completar la solicitud de movimiento de buzón individual desde un lote de migración.
Conéctese a Exchange Online PowerShell
Ejecute PowerShell como administrador y conéctese a Exchange Online PowerShell.
Obtener lote de migración
Ejecute el cmdlet Get-MigrationBatch para obtener los lotes de migración.
Hay dos lotes de migración creados. Ambos lotes están sincronizados entre las organizaciones de Exchange (local y en línea).
PS C:\> Get-MigrationBatch
Identity Status Type TotalCount
-------- ------ ---- ----------
MigrationBatch01 Synced ExchangeRemoteMove 5
MigrationBatch02 Synced ExchangeRemoteMove 13
Leer más: Programar la migración por lotes de buzones de correo »
Lote de migración completo
Ejecute el cmdlet Complete-MigrationBatch para completar el lote de migración en Office 365. Luego, confirme con A y presione Entrar.
PS C:\> Complete-MigrationBatch -Identity "MigrationBatch01"
Confirm
Are you sure you want to perform this action?
Complete migration batch "MigrationBatch01"?
[Y] Yes [A] Yes to All [N] No [L] No to All [?] Help (default is "Y"):Nota: ¿Recibe un resultado de confirmación de error? Lea el artículo Migración completa de buzones de correo con elementos defectuosos.
Si no desea mostrar el mensaje de confirmación e inmediatamente comenzar a completar el lote de migración, agregue el modificador -Confirm:$False al final del comando.
PS C:\> Complete-MigrationBatch -Identity "MigrationBatch01" -Confirm:$FalseObtener solicitud de movimiento por lotes
Ejecute Get-MoveRequest, incluido el parámetro -BatchName, para comprobar el estado de la solicitud de movimiento del buzón del lote.
PS C:\> Get-MoveRequest -BatchName "MigrationService:MigrationBatch01" -ResultSize Unlimited | Get-MoveRequestStatistics
DisplayName StatusDetail TotalMailboxSize TotalArchiveSize PercentComplete
----------- ------------ ---------------- ---------------- ---------------
Thomas Wilkins IncrementalSync 67.87 MB (71,171,939 bytes) 0 B (0 bytes) 95
Amelia Nash WorkItemPickup 48.22 MB (50,562,011 bytes) 0 B (0 bytes) 95
Sarah Coleman IncrementalSync 322.8 MB (338,493,950 bytes) 0 B (0 bytes) 95
Simon Berry IncrementalSync 1.768 GB (1,897,912,196 bytes) 0 B (0 bytes) 95
Curt Berry WorkItemPickup 1.147 GB (1,231,440,391 bytes) 0 B (0 bytes) 95También puede usar el cmdlet Get-MigrationUser, incluido el parámetro -BatchId, para comprobar el estado de la solicitud de movimiento del buzón del lote.
PS C:\> Get-MigrationUser -BatchId "MigrationBatch01" -ResultSize Unlimited | Get-MoveRequestStatistics
DisplayName StatusDetail TotalMailboxSize TotalArchiveSize PercentComplete
----------- ------------ ---------------- ---------------- ---------------
Thomas Wilkins IncrementalSync 67.87 MB (71,171,939 bytes) 0 B (0 bytes) 95
Amelia Nash WorkItemPickup 48.22 MB (50,562,011 bytes) 0 B (0 bytes) 95
Sarah Coleman IncrementalSync 322.8 MB (338,493,950 bytes) 0 B (0 bytes) 95
Simon Berry IncrementalSync 1.768 GB (1,897,912,196 bytes) 0 B (0 bytes) 95
Curt Berry WorkItemPickup 1.147 GB (1,231,440,391 bytes) 0 B (0 bytes) 95Verificar solicitud de movimiento por lotes
Si configuró su correo electrónico al crear los lotes, recibirá un correo electrónico cuando se complete. Si no lo hizo o desea realizar un seguimiento con PowerShell, siga ejecutando el comando. Al final, debe mostrar PercentComplete: 100% para todos los buzones.
PS C:\> Get-MoveRequest -BatchName "MigrationService:MigrationBatch01" -ResultSize Unlimited | Get-MoveRequestStatistics
DisplayName StatusDetail TotalMailboxSize TotalArchiveSize PercentComplete
----------- ------------ ---------------- ---------------- ---------------
Thomas Wilkins Completed 67.87 MB (71,171,939 bytes) 0 B (0 bytes) 100
Amelia Nash Completed 48.22 MB (50,562,011 bytes) 0 B (0 bytes) 100
Sarah Coleman Completed 322.8 MB (338,493,950 bytes) 0 B (0 bytes) 100
Simon Berry Completed 1.768 GB (1,897,912,196 bytes) 0 B (0 bytes) 100
Curt Berry Completed 1.147 GB (1,231,440,391 bytes) 0 B (0 bytes) 100Así es como se ve MigrationBatch01 en el centro de administración de Microsoft 365 Exchange.
Ejecute el cmdlet Get-MigrationBatch para verificar si el lote está completo.
PS C:\> Get-MigrationBatch
Identity Status Type TotalCount
-------- ------ ---- ----------
MigrationBatch01 Completed ExchangeRemoteMove 5
MigrationBatch02 Synced ExchangeRemoteMove 13El lote de migración se completó exitosamente a Exchange Online.
Sigue leyendo: Migrar buzones de correo a Office 365 »
Conclusión
Aprendió a completar el lote de migración manualmente con PowerShell. Ejecute Exchange Online PowerShell para administrar la configuración de Exchange Online desde la línea de comandos. Obtenga los nombres de los lotes y luego complete el lote de migración del buzón.
¿Disfrutaste este artículo? También te puede interesar Error al mover el buzón: solucionar problemas y solucionarlo. No olvides seguirnos y compartir este artículo.
