| title | SharePoint site design - PnP PowerShell cmdlets |
|---|---|
| description | Use PnP PowerShell cmdlets to create, retrieve, and remove site designs and site scripts. |
| ms.date | 06/28/2022 |
| ms.localizationpriority | high |
Use PnP PowerShell cmdlets to create, retrieve, update, and remove site designs and site scripts to new and existing modern site collections.
[!INCLUDE pnp-powershell]
To run the PnP PowerShell cmdlets, you'll need to do the following:
-
Download and install the PnP PowerShell Module by running:
Install-Module PnP.PowerShell -
Connect to the SharePoint Online Admin Center of your tenant:
Connect-PnPOnline -Url https://tenant-admin.sharepoint.com -Interactive
To verify your setup and connection, try using the Get-PnPSiteScript 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 PnP PowerShell:
- Add-PnPSiteDesign
- Add-PnPSiteDesignTask
- Add-PnPSiteScript
- Add-PnPSiteScriptPackage
- Get-PnPSiteDesign
- Get-PnPSiteDesignRights
- Get-PnPSiteDesignRun
- Get-PnPSiteDesignRunStatus
- Get-PnPSiteDesignTask
- Get-PnPSiteScript
- Get-PnPSiteScriptFromList
- Get-PnPSiteScriptFromWeb
- Grant-PnPSiteDesignRights
- Invoke-PnPSiteDesign
- Remove-PnPSiteDesign
- Remove-PnPSiteDesignTask
- Remove-PnPSiteScript
- Revoke-PnPSiteDesignRights
- Set-PnPSiteDesign
- Set-PnPSiteScript
- Set-PnPSiteScriptPackage