Get-SPOSiteScript
显示有关现有站点脚本的信息。
语法
Default (默认值)
Get-SPOSiteScript
[[-Identity] <SPOSiteScriptPipeBind>]
[<CommonParameters>]
说明
显示有关现有站点脚本的信息。 如果未提供参数,此 cmdlet 将返回每个站点脚本的 ID、 标题、 说明和 版本 。 提供网站脚本 ID 时,此 cmdlet 还会返回 Content,即网站脚本的 JSON。
示例
示例 1
此示例演示如何获取特定脚本 ID 的脚本信息。
Get-SPOSiteScript 07702c07-0485-426f-b710-4704241caad9
Id : 07702c07-0485-426f-b710-4704241caad9
Title : Contoso theme
Description :
Content : {
"$schema": "schema.json",
"actions": [
{
"verb": "applyTheme",
"themeName": "Custom Cyan"
}
],
"bindata": { },
"version": 1
}
Version : 1
参数
-Identity
适用:SharePoint Online
要获取其信息的网站脚本的 ID。
参数属性
| 类型: | Microsoft.Online.SharePoint.PowerShell.SPOSiteScriptPipeBind |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | 0 |
| 必需: | False |
| 来自管道的值: | True |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
CommonParameters
此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters。