| external help file | Microsoft.Online.SharePoint.PowerShell.dll-Help.xml |
|---|---|
| Module Name | Microsoft.Online.SharePoint.PowerShell |
| online version | https://learn.microsoft.com/powershell/module/microsoft.online.sharepoint.powershell/get-spositepages |
| applicable | SharePoint Online |
| title | Get-SPOSitePages |
| schema | 2.0.0 |
| author | xuyangzo |
| ms.author | xuyangzou |
| ms.reviewer |
This cmdlet allows you to retrieve all SharePoint pages under a specific SharePoint site.
Get-SPOSitePages -Site <SpoSitePipeBind> [<CommonParameters>]
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. |
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.
Applicable: SharePoint Online
Specifies the URL of the SharePoint site from which to fetch the SharePoint pages.
Type: Microsoft.Online.SharePoint.PowerShell.SpoSitePipeBind
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.