Get-SPOSitePages
此 cmdlet 允许您检索特定 SharePoint 网站下的所有 SharePoint 页面。
语法
Default (默认值)
Get-SPOSitePages
-Site <SpoSitePipeBind>
[<CommonParameters>]
说明
执行此 cmdlet 后,将显示每个 SharePoint 页面的信息,并具有以下属性:
| 属性 | 说明 |
|---|---|
| 名称 | SharePoint 页面的名称。 |
| 标题 | SharePoint 页面的标题。 |
| UniqueId | SharePoint 页面的唯一 ID。 |
| CreatedDateTime | SharePoint 页面的创建日期和时间。 |
| LastModifiedDateTime | SharePoint 页面的上次修改日期和时间。 |
| CreatedBy | SharePoint 页面的创建者。 |
示例
示例 1
Get-SPOSitePages -Site 'https://contoso.sharepoint.com/sites/testsite'
示例 1 演示了 SharePoint 管理员如何检索 下 testsite的所有 SharePoint 页面。
参数
-Site
适用:SharePoint Online
指定要从中获取 SharePoint 页面的 SharePoint 网站的 URL。
参数属性
| 类型: | Microsoft.Online.SharePoint.PowerShell.SpoSitePipeBind |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | True |
| 来自管道的值: | True |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
CommonParameters
此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters。