Skip to content

Get-MigrationJobProgress

SharePoint Online: Gets migration job progress

#Requires -Version 5.1
#Requires -Modules Microsoft.Online.SharePoint.PowerShell

[CmdletBinding()]
Param(
    [Parameter(Mandatory = $true)]
    [guid]$PackageId
)

Process {
    try {
        $result = Get-SPOMigrationJobProgress -PackageId $PackageId -ErrorAction Stop | Select-Object *
        if ($null -ne $result) { $result | Add-Member -NotePropertyName Timestamp -NotePropertyValue (Get-Date -Format "yyyy-MM-dd HH:mm:ss") -PassThru -Force }
    }
    catch { throw }
}

The migration package ID

An interactive directory of PowerShell scripts.