Commands › SharePoint Online

Get-SPOMigrationJobStatus

SharePoint Online Microsoft.Online.SharePoint.PowerShell Get-*

**Note**: This cmdlet has been deprecated. To migrate to SharePoint and Microsoft 365 using PowerShell, see Migrate to SharePoint using PowerShell. Use this cmdlet to monitor the status of a submitted SharePoint Online migration job.

Quick start script

# Get-SPOMigrationJobStatus — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-SPOService -Url https://$org-admin.sharepoint.com

# 2. Run and inspect
Get-SPOMigrationJobStatus -Credentials <CredentialCmdletPipeBind> -TargetWebUrl <String> | Format-List

# 3. Export for evidence / drift tracking
Get-SPOMigrationJobStatus | Export-Clixml .\SPOMigrationJobStatus-$(Get-Date -Format yyyyMMdd).xml

Syntax

Get-SPOMigrationJobStatus -TargetWebUrl <String> [-JobId <Guid>] -Credentials <CredentialCmdletPipeBind>
 [-NoLogFile] [<CommonParameters>]

Parameters (4)

ParameterTypeRequiredWhat it controls
-Credentials CredentialCmdletPipeBind yes The credentials of a site collection administrator to use to connect to the site collection. The credentials should supply the username in UPN format (e.g. user@company.onmicrosoft.com). If this property is not set,...
-JobId Guid (optional) The ID of a migration job that exists on the target site collection.
-NoLogFile SwitchParameter (optional) Indicates to not create a log file. The default is to create a new DeleteMigrationJob log file within the current directory.
-TargetWebUrl String yes The fully qualified target web URL where the package will be imported. This must include the same TargetWebUrl that was used during `ConvertTo-SPOMigrationTargetedPackage`.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.