Public/Migration/MailboxMove/Base/Complete-MailboxMove.ps1
function Complete-MailboxMove { <# .SYNOPSIS Allows the completion or the scheduling of the completion of moves/syncs .DESCRIPTION Allows the completion or the scheduling of the completion of move requests .PARAMETER Tenant This is the tenant domain ex. if tenant is contoso.mail.onmicrosoft.com use contoso .PARAMETER Schedule A switch that allows you to choose a date and time at which to complete the mailbox moves/syncs .EXAMPLE An example .NOTES General notes #> [CmdletBinding()] param ( [Parameter()] [switch] $Schedule ) end { $UserChoice = Import-MailboxMoveDecision -NotCompleted if ($UserChoice -ne 'Quit' ) { if ($Schedule) { $UTCTimeandDate = Get-ScheduleDecision $UserChoice | Invoke-CompleteMailboxMove -CompleteAfter $UTCTimeandDate | Out-GridView -Title "Scheduling of complete mailbox move results" } else { $UserChoice | Invoke-CompleteMailboxMove | Out-GridView -Title "Completion of mailbox move results" } } } } |