external help file | Module Name | online version | applicable | title | schema | author | ms.author | ms.reviewer |
---|---|---|---|---|---|---|---|---|
sharepointonline.xml | Microsoft.Online.SharePoint.PowerShell | SharePoint Online | Get-SPOSiteScript | 2.0.0 | trent-green | trgreen |
Displays information about existing site scripts.
Get-SPOSiteScript [[-Identity] <SPOSiteScriptPipeBind>] [<CommonParameters>]
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.
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
The ID of the site script to get information about.
Type: SPOSiteScriptPipeBindParameter Sets: (All)Aliases: Applicable: SharePoint OnlineRequired: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.