Get-SPOSiteScript

顯示現有月臺腳本的相關資訊。

Syntax

Get-SPOSiteScript
   [[-Identity] <SPOSiteScriptPipeBind>]
   [<CommonParameters>]

Description

顯示現有月臺腳本的相關資訊。 未提供任何參數時,此 Cmdlet 會傳回每個月臺腳本的 標識符、 標題描述版本 。 提供網站腳本識別碼時,此 Cmdlet 也會傳回 Content,也就是網站腳本的 JSON。

範例

範例 1

此範例示範如何取得特定腳本識別碼的腳本資訊。

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

要取得相關資訊的網站腳本識別碼。

Type:SPOSiteScriptPipeBind
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online