Skip to content

Latest commit

 

History

History
65 lines (50 loc) · 3.55 KB

File metadata and controls

65 lines (50 loc) · 3.55 KB
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

SharePoint site design: PnP PowerShell cmdlets

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]

Getting started

To run the PnP PowerShell cmdlets, you'll need to do the following:

  1. Download and install the PnP PowerShell Module by running:

    Install-Module PnP.PowerShell
  2. 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.

Site design cmdlets

The following cmdlets are available for managing site designs and site scripts from PnP PowerShell:

See also