Commands › SharePoint Online

Add-SPOSiteScriptPackage

SharePoint Online Microsoft.Online.SharePoint.PowerShell Add-*

Uploads a new site script package for use either directly or in a site design.

Quick start script

# Add-SPOSiteScriptPackage — 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
Add-SPOSiteScriptPackage -ContentPath <String> -Title <String> | Format-List

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

Syntax

Add-SPOSiteScriptPackage -Title <String> -ContentPath <String> [-Description <String>] [<CommonParameters>]

Parameters (3)

ParameterTypeRequiredWhat it controls
-ContentPath String yes The absolute path to a zip archive file containing the content of the new site script package.
-Description String A description of the site script.
-Title String yes The display name of the site script.

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