Get-SPOSitePages
This cmdlet allows you to retrieve all SharePoint pages under a specific SharePoint site.
Syntax
Default (Default)
Get-SPOSitePages
-Site <SpoSitePipeBind>
[<CommonParameters>]
Description
After this cmdlet is executed, the information for each SharePoint page will be displayed with the following properties:
| Property | Description |
|---|---|
| Name | The name of the SharePoint page. |
| Title | The title of the SharePoint page. |
| UniqueId | The unique ID of the SharePoint page. |
| CreatedDateTime | The creation date and time of the SharePoint page. |
| LastModifiedDateTime | The last modified date and time of the SharePoint page. |
| CreatedBy | The creator of the SharePoint page. |
Examples
EXAMPLE 1
Get-SPOSitePages -Site 'https://contoso.sharepoint.com/sites/testsite'
Example 1 demonstrates how a SharePoint Administrator can retrieve all the SharePoint pages under the testsite.
Parameters
-Site
Applicable: SharePoint Online
Specifies the URL of the SharePoint site from which to fetch the SharePoint pages.
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 |
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.