Commands › SharePoint Online

Get-SPOSiteScript

SharePoint Online Microsoft.Online.SharePoint.PowerShell Get-*

Displays information about existing site scripts.

Quick start script

# Get-SPOSiteScript — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-SPOService -Url https://$org-admin.sharepoint.com

# 2. Run and inspect
Get-SPOSiteScript | Format-List

# 3. Export for evidence / drift tracking
Get-SPOSiteScript | Export-Clixml .\SPOSiteScript-$(Get-Date -Format yyyyMMdd).xml

Syntax

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

Parameters (1)

ParameterTypeRequiredWhat it controls
-Identity SPOSiteScriptPipeBind The ID of the site script to get information about.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.