| title | SharePoint site design - PowerShell cmdlets |
|---|---|
| description | Use PowerShell cmdlets to create, retrieve, and remove site designs and site scripts. |
| ms.date | 06/28/2022 |
| ms.localizationpriority | high |
Use PowerShell cmdlets to create, retrieve, update, and remove site designs and site scripts to new and existing modern site collections.
To run the PowerShell cmdlets, you'll need to do the following:
- Download and install the SharePoint Online Management Shell. If you already have a previous version of the shell installed, uninstall it first and then install the latest version.
- Follow the instructions at Connect to SharePoint Online PowerShell to connect to your SharePoint tenant.
To verify your setup, try using the Get-SPOSiteScript cmdlet to read the current list of site scripts. If the cmdlet runs and returns with no errors, you're ready to proceed.
The following cmdlets are available for managing site designs and site scripts from PowerShell:
- Add-SPOSiteDesign
- Add-SPOSiteDesignTask
- Add-SPOSiteScript
- Get-SPOSiteDesign
- Get-SPOSiteDesignRights
- Get-SPOSiteDesignRun
- Get-SPOSiteDesignRunStatus
- Get-SPOSiteDesignTask
- Get-SPOSiteScript
- Get-SPOSiteScriptFromWeb
- Get-SPOSiteScriptFromList
- Grant-SPOSiteDesignRights
- Invoke-SPOSiteDesign
- Remove-SPOSiteDesign
- Remove-SPOSiteDesignTask
- Remove-SPOSiteScript
- Revoke-SPOSiteDesignRights
- Set-SPOSiteDesign
- Set-SPOSiteScript