Get-SPOSiteScript

Displays information about existing site scripts.

Syntax

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

Description

Displays information about existing site scripts. When no parameter is provided, this cmdlet returns the Id, Title, Description, and Version of each site script. When a site script ID is provided, this cmdlet also returns the Content, which is the JSON of the site script.

Examples

Example 1

This example shows how to get script information for a specific script 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

Parameters

-Identity

The ID of the site script to get information about.

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