Edit

Share via


Get-SPOMigrationJobStatus

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.

Syntax

Default (Default)

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

Description

This cmdlet will check the status of a migration job.

Examples

EXAMPLE 1

$targetWebUrl = "https://contoso.sharepoint.com/sites/migrationtest"
$credentials = Get-Credential
Get-SPOMigrationJobStatus -TargetWebUrl $targetWebUrl -Credentials $credentials -JobId "779c4b3b-ec24-4705-bb58-c38f4329418c"

Get the status of your SPO Migration Job. You can obtain the Job id when submit package data to create new SPO migration job via the Invoke-SPOMigrationEncryptUploadSubmit cmdlet

Parameters

-Credentials

Applicable: SharePoint Online

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, the current tenant admin credentials from the session's previous call to Connect-SPOService will be used to connect to the site collection.

Parameter properties

Type:Microsoft.Online.SharePoint.PowerShell.CredentialCmdletPipeBind
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-JobId

Applicable: SharePoint Online

(optional) The ID of a migration job that exists on the target site collection.

Parameter properties

Type:System.Guid
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-NoLogFile

Applicable: SharePoint Online

(optional) Indicates to not create a log file. The default is to create a new DeleteMigrationJob log file within the current directory.

Parameter properties

Type:System.Management.Automation.SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-TargetWebUrl

Applicable: SharePoint Online

The fully qualified target web URL where the package will be imported. This must include the same TargetWebUrl that was used during ConvertTo-SPOMigrationTargetedPackage.

Parameter properties

Type:System.String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None

Outputs

System.Object