Get-SPOPersonalSitePageCopyProgress
This cmdlet enables you to track the progress of a SharePoint page's copy operation.
Syntax
Default (Default)
Get-SPOPersonalSitePageCopyProgress
-DestinationSite <SpoSitePipeBind>
-WorkItemId <Guid>
[<CommonParameters>]
Description
After this cmdlet is executed, you'll receive the following information:
Property | Description |
---|---|
ErrorMessage | The error message if there is an error. |
JobState | The state of the job. |
NewPageUrl | The URL of the new page if the copy is already finished. |
SourcePageName | The name of the source page to copy. Will be empty. |
StatusMessage | The message to describe the status. |
WorkItemId | The work item id to track the status of the copy job if the copy job is in progress. |
The following table explains the copy job's state:
Status | Explanation |
---|---|
Queued | The copy operation was queued for execution. |
CreateAssetsFolderStart | We've started creating a folder to place all associated assets used on this page. |
CreateAssetsFolderEnd | We've finished creating a folder to place all associated assets used on this page. |
CopyAssetsStart | We've started copying associated assets used on this page. |
CopyAssetsEnd | We've finished copying associated assets used on this page. |
CreatePageStart | We've started creating a new page. |
CreatePageEnd | We've finished creating a new page. |
Succeeded | The copy operation was successful. |
Deleting | The copy operation was deleted. |
Failed | The copy operation failed. |
JobNotFound | The copy operation wasn't found. |
Examples
EXAMPLE 1
Get-SPOPersonalSitePageCopyProgress -DestinationSite 'https://contoso.sharepoint.com/sites/testsite' -WorkItemId 1a95eb18-f68d-4dd4-9aaf-b47cf05cf02a
Example 1 shows how a SharePoint Administrator can check the status of a copy operation using a work item ID.
Parameters
-DestinationSite
Applicable: SharePoint Online
Specifies the URL of the destination SharePoint site to which the SharePoint page has been copied to.
Parameter properties
Type: | Microsoft.Online.SharePoint.PowerShell.SpoSitePipeBind |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-WorkItemId
Applicable: SharePoint Online
Specifies the GUID of the work item created for the copy job if it is asynchronous.
Parameter properties
Type: | System.Guid |
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.