PnP PowerShell overview

SharePoint Patterns and Practices (PnP) contains a library of PowerShell commands (PnP PowerShell) that allows you to perform complex provisioning and artifact management actions towards SharePoint. The commands use CSOM and can work against both SharePoint Online and SharePoint On-Premises.

SharePoint Patterns and Practices

Applies to: SharePoint Online | SharePoint 2016 | SharePoint 2013

Installation

There are 3 ways to install the cmdlets. We recommend, where possible, to install them from the PowerShell Gallery. Alternatively you can download the setup files or run a PowerShell script to download the PowerShellGet module and install the cmdlets subsequently.

If your main OS is Windows 10, or if you have PowerShellGet installed, you can run the following commands to install the PowerShell cmdlets:

SharePoint Version Command to install
SharePoint Online Install-Module SharePointPnPPowerShellOnline
SharePoint 2016 Install-Module SharePointPnPPowerShell2016
SharePoint 2013 Install-Module SharePointPnPPowerShell2013

Notice: if you install the latest PowerShellGet from Github, you might receive an error message stating

PackageManagement\Install-Package : The version 'x.x.x.x' of the module 'SharePointPnPPowerShellOnline' being installed is not catalog signed.

In order to install the cmdlets when you get this error specify the -SkipPublisherCheck switch with the Install-Module cmdlet, e.g. Install-Module SharePointPnPPowerShellOnline -SkipPublisherCheck -AllowClobber

Setup files

You can download setup files from the releases section of the PnP PowerShell repository. These files will up be updated on a monthly basis. Run the install and restart any open instances of PowerShell to use the cmdlets.

Installation script

This is an alternative for installation on machines that have at least PowerShell v3 installed. You can find the version of PowerShell by opening PowerShell and running $PSVersionTable.PSVersion. The value for Major should be above 3.

To install the cmdlets you can run the below command which will install PowerShell Package Management and then install the PowerShell Modules from the PowerShell Gallery.

Invoke-Expression (New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/sharepoint/PnP-PowerShell/master/Samples/Modules.Install/Install-SharePointPnPPowerShell.ps1')

Updating

Every month a new release will be made available of the PnP PowerShell Cmdlets. If you earlier installed the cmdlets using the setup file, simply download the latest version and run the setup. This will update your existing installation.

If you have installed the cmdlets using PowerShellGet with Install-Module from the PowerShell Gallery then you will be able to use the following command to install the latest updated version:

Update-Module SharePointPnPPowerShell*

This will automatically load the module after starting PowerShell 3.0.

You can check the installed PnP-PowerShell versions with the following command:

Get-Module SharePointPnPPowerShell* -ListAvailable | Select-Object Name,Version | Sort-Object Version -Descending

Getting Started

To use the library you first need to connect to your tenant:

Connect-PnPOnline –Url https://yoursite.sharepoint.com –Credentials (Get-Credential)

Notice: if you use multi-factor authentication on your tenant, use

Connect-PnPOnline -Url https://yoursite.sharepoint.com -UseWebLogin

To view all cmdlets, enter

Get-Command -Module *PnP*

At the following video will show you how to get started with the cmdlets:

Setting up credentials

See this wiki page for more information on how to use the Windows Credential Manager to setup credentials that you can use in unattended scripts

Cmdlet overview

Apps

Cmdlet Description Platform
Add‑PnPApp Add/uploads an available app to the app catalog SharePoint Online
Get‑PnPApp Returns the available apps from the app catalog SharePoint Online
Install‑PnPApp Installs an available app from the app catalog SharePoint Online
Publish‑PnPApp Publishes/Deploys/Trusts an available app in the app catalog SharePoint Online
Remove‑PnPApp Removes an app from the app catalog SharePoint Online
Uninstall‑PnPApp Uninstalls an available add-in from the site SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Unpublish‑PnPApp Unpublishes/retracts an available add-in from the app catalog SharePoint Online
Update‑PnPApp Updates an available app from the app catalog SharePoint Online
Get‑PnPAppInstance Returns a SharePoint AddIn Instance SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Uninstall‑PnPAppInstance Removes an app from a site SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Import‑PnPAppPackage Adds a SharePoint Addin to a site SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Grant‑PnPTenantServicePrincipalPermission Explicitly grants a specified permission to the "SharePoint Online Client" service principal SharePoint Online

Base Cmdlets

Cmdlet Description Platform
Get‑PnPAppAuthAccessToken Returns the access token SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPAuthenticationRealm Returns the authentication realm SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPAzureADManifestKeyCredentials Return the JSON Manifest snippet for Azure Apps SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPAzureCertificate Get PEM values and manifest settings for an existing certificate (.pfx) for use when using CSOM via an app-only ADAL application. See https://github.com/SharePoint/PnP-PowerShell/tree/master/Samples/SharePoint.ConnectUsingAppPermissions for a sample on how to get started. KeyCredentials contains the ADAL app manifest sections. Certificate contains the PEM encoded certificate. PrivateKey contains the PEM encoded private key of the certificate. SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
New‑PnPAzureCertificate Generate a new 2048bit self-signed certificate and manifest settings for use when using CSOM via an app-only ADAL application. See https://github.com/SharePoint/PnP-PowerShell/tree/master/Samples/SharePoint.ConnectUsingAppPermissions for a sample on how to get started. KeyCredentials contains the ADAL app manifest sections. Certificate contains the PEM encoded certificate. PrivateKey contains the PEM encoded private key of the certificate. SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPConnection Returns the current context SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPContext Returns the current context SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Set‑PnPContext Set the ClientContext SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPException Returns the last exception that occured SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPHealthScore Retrieves the healthscore SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Connect‑PnPOnline Connect to a SharePoint site SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Disconnect‑PnPOnline Disconnects the context SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPProperty Returns a previously not loaded property of a ClientObject SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Invoke‑PnPQuery Executes the currently queued actions SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Add‑PnPStoredCredential Adds a credential to the Windows Credential Manager SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPStoredCredential Get a credential SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Remove‑PnPStoredCredential Removes a credential SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Set‑PnPTraceLog Turn log tracing on or off SharePoint Server 2013, SharePoint Server 2016, SharePoint Online

Branding

Cmdlet Description Platform
Add‑PnPCustomAction Adds a custom action SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPCustomAction Return user custom actions SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Remove‑PnPCustomAction Removes a custom action SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPHomePage Return the homepage SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Set‑PnPHomePage Sets the home page of the current web. SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Add‑PnPJavaScriptBlock Adds a link to a JavaScript snippet/block to a web or site collection SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Add‑PnPJavaScriptLink Adds a link to a JavaScript file to a web or sitecollection SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPJavaScriptLink Returns all or a specific custom action(s) with location type ScriptLink SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Remove‑PnPJavaScriptLink Removes a JavaScript link or block from a web or sitecollection SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPMasterPage Returns the URLs of the default Master Page and the custom Master Page. SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Set‑PnPMasterPage Set the masterpage SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Set‑PnPMinimalDownloadStrategy Activates or deactivates the minimal downloading strategy. SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Add‑PnPNavigationNode Adds an item to a navigation element SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPNavigationNode Returns all or a specific navigation node SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Remove‑PnPNavigationNode Removes a menu item from either the quicklaunch or top navigation SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Disable‑PnPResponsiveUI Deactivate the PnP Response UI add-on SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Enable‑PnPResponsiveUI Activates the PnP Response UI Add-on SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPTheme Returns the current theme/composed look of the current web. SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Set‑PnPTheme Sets the theme of the current web. SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Set‑PnPWebTheme Sets the theme of the current web. SharePoint Online

Client-Side Pages

Cmdlet Description Platform
Get‑PnPAvailableClientSideComponents Gets the available client side components on a particular page SharePoint Online
Move‑PnPClientSideComponent Moves a Client-Side Component to a different section/column SharePoint Online
Add‑PnPClientSidePage Adds a Client-Side Page SharePoint Online
Get‑PnPClientSidePage Gets a Client-Side Page SharePoint Online
Remove‑PnPClientSidePage Removes a Client-Side Page SharePoint Online
Set‑PnPClientSidePage Sets parameters of a Client-Side Page SharePoint Online
Add‑PnPClientSidePageSection Adds a new section to a Client-Side page SharePoint Online
Add‑PnPClientSideText Adds a text element to a client-side page. SharePoint Online
Add‑PnPClientSideWebPart Adds a Client-Side Web Part to a client-side page SharePoint Online

Content Types

Cmdlet Description Platform
Add‑PnPContentType Adds a new content type SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPContentType Retrieves a content type SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Remove‑PnPContentType Removes a content type from a web SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Remove‑PnPContentTypeFromList Removes a content type from a list SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPContentTypePublishingHubUrl Returns the url to Content Type Publishing Hub SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Add‑PnPContentTypeToList Adds a new content type to a list SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Set‑PnPDefaultContentTypeToList Sets the default content type for a list SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Remove‑PnPFieldFromContentType Removes a site column from a content type SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Add‑PnPFieldToContentType Adds an existing site column to a content type SharePoint Server 2013, SharePoint Server 2016, SharePoint Online

Diagnostic utilities

Cmdlet Description Platform
Measure‑PnPList Returns statistics on the list object SharePoint Online, SharePoint 2016
Measure‑PnPResponseTime Gets statistics on response time for the specified endpoint by sending probe requests SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Measure‑PnPWeb Returns statistics on the web object SharePoint Online, SharePoint 2016

Document Sets

Cmdlet Description Platform
Remove‑PnPContentTypeFromDocumentSet Removes a content type from a document set SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Add‑PnPContentTypeToDocumentSet Adds a content type to a document set SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Add‑PnPDocumentSet Creates a new document set in a library. SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Set‑PnPDocumentSetField Sets a site column from the available content types to a document set SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPDocumentSetTemplate Retrieves a document set template SharePoint Server 2013, SharePoint Server 2016, SharePoint Online

Event Receivers

Cmdlet Description Platform
Add‑PnPEventReceiver Adds a new remote event receiver SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPEventReceiver Return registered eventreceivers SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Remove‑PnPEventReceiver Remove an eventreceiver SharePoint Server 2013, SharePoint Server 2016, SharePoint Online

Features

Cmdlet Description Platform
New‑PnPExtensibilityHandlerObject Creates an ExtensibilityHandler Object, to be used by the Get-SPOProvisioningTemplate cmdlet SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Disable‑PnPFeature Disables a feature SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Enable‑PnPFeature Enables a feature SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPFeature Returns all activated or a specific activated feature SharePoint Server 2013, SharePoint Server 2016, SharePoint Online

Fields

Cmdlet Description Platform
Add‑PnPField Add a field SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPField Returns a field from a list or site SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Remove‑PnPField Removes a field from a list or a site SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Set‑PnPField Changes one or more properties of a field in a specific list or for the whole web SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Add‑PnPFieldFromXml Adds a field to a list or as a site column based upon a CAML/XML field definition SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Add‑PnPTaxonomyField Add a taxonomy field SharePoint Server 2013, SharePoint Server 2016, SharePoint Online

Files and Folders

Cmdlet Description Platform
Add‑PnPFile Uploads a file to Web SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Copy‑PnPFile Copies a file or folder to a different location SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Find‑PnPFile Finds a file in the virtual file system of the web. SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPFile Downloads a file. SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Move‑PnPFile Moves a file to a different location SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Remove‑PnPFile Removes a file. SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Rename‑PnPFile Renames a file in its current location SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Set‑PnPFileCheckedIn Checks in a file SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Set‑PnPFileCheckedOut Checks out a file SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Add‑PnPFolder Creates a folder within a parent folder SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPFolder Return a folder object SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Move‑PnPFolder Move a folder to another location in the current web SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Remove‑PnPFolder Deletes a folder within a parent folder SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Rename‑PnPFolder Renames a folder SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Resolve‑PnPFolder Returns a folder from a given site relative path, and will create it if it does not exist. SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPFolderItem List content in folder SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Copy‑PnPItemProxy Proxy cmdlet for using Copy-Item between SharePoint provider and FileSystem provider SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Move‑PnPItemProxy Proxy cmdlet for using Move-Item between SharePoint provider and FileSystem provider SharePoint Server 2013, SharePoint Server 2016, SharePoint Online

Information Management

Cmdlet Description Platform
Get‑PnPLabel Gets the label/tag of the specified list or library (if applicable) SharePoint Online
Set‑PnPLabel Sets a label/tag on the specified list or library SharePoint Online
Get‑PnPListInformationRightsManagement Get the site closure status of the site which has a site policy applied SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Set‑PnPListInformationRightsManagement Get the site closure status of the site which has a site policy applied SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPSiteClosure Get the site closure status of the site which has a site policy applied SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Set‑PnPSiteClosure Opens or closes a site which has a site policy applied SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Set‑PnPSitePolicy Sets a site policy SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPSitePolicy Retrieves all or a specific site policy SharePoint Server 2013, SharePoint Server 2016, SharePoint Online

Lists

Cmdlet Description Platform
Get‑PnPDefaultColumnValues Gets the default column values for all folders in document library SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Set‑PnPDefaultColumnValues Sets default column values for a document library SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPList Returns a List object SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
New‑PnPList Creates a new list SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Remove‑PnPList Deletes a list SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Set‑PnPList Updates list settings SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Add‑PnPListItem Adds an item to a list SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPListItem Retrieves list items SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Remove‑PnPListItem Deletes an item from a list SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Set‑PnPListItem Updates a list item SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Set‑PnPListItemPermission Sets list item permissions SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Move‑PnPListItemToRecycleBin Moves an item from a list to the Recycle Bin SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Set‑PnPListPermission Sets list permissions SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPProvisioningTemplateFromGallery Retrieves or searches provisioning templates from the PnP Template Gallery SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Request‑PnPReIndexList Marks the list for full indexing during the next incremental crawl SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Add‑PnPView Adds a view to a list SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPView Returns one or all views from a list SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Remove‑PnPView Deletes a view from a list SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Set‑PnPView Change view properties SharePoint Server 2013, SharePoint Server 2016, SharePoint Online

Microsoft Graph

Cmdlet Description Platform
Connect‑PnPMicrosoftGraph Connect to the Microsoft Graph SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Add‑PnPSiteClassification Adds one ore more site classification values to the list of possible values. Requires a connection to the Microsoft Graph. SharePoint Online
Disable‑PnPSiteClassification Disables Site Classifications for the tenant. Requires a connection to the Microsoft Graph. SharePoint Online
Enable‑PnPSiteClassification Enables Site Classifications for the tenant. Requires a connection to the Microsoft Graph. SharePoint Online
Get‑PnPSiteClassification Returns the defined Site Classifications for the tenant. Requires a connection to the Microsoft Graph. SharePoint Online
Remove‑PnPSiteClassification Removes one or more existing site classification values from the list of available values. Requires a connection to the Microsoft Graph SharePoint Online
Update‑PnPSiteClassification Updates Site Classifications for the tenant. Requires a connection to the Microsoft Graph. SharePoint Online
Get‑PnPUnifiedGroup Gets one Office 365 Group (aka Unified Group) or a list of Office 365 Groups SharePoint Online
New‑PnPUnifiedGroup Creates a new Office 365 Group (aka Unified Group) SharePoint Online
Remove‑PnPUnifiedGroup Removes one Office 365 Group (aka Unified Group) or a list of Office 365 Groups SharePoint Online
Set‑PnPUnifiedGroup Sets Office 365 Group (aka Unified Group) properties SharePoint Online
Get‑PnPUnifiedGroupMembers Gets members of a particular Office 365 Group (aka Unified Group) SharePoint Online
Get‑PnPUnifiedGroupOwners Gets owners of a particular Office 365 Group (aka Unified Group) SharePoint Online

Provisioning

Cmdlet Description Platform
Add‑PnPDataRowsToProvisioningTemplate Adds datarows to a list inside a PnP Provisioning Template SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Remove‑PnPFileFromProvisioningTemplate Removes a file from a PnP Provisioning Template SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Add‑PnPFileToProvisioningTemplate Adds a file to a PnP Provisioning Template SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Convert‑PnPFolderToProvisioningTemplate Creates a pnp package file of an existing template xml, and includes all files in the current folder SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Add‑PnPListFoldersToProvisioningTemplate Adds folders to a list in a PnP Provisioning Template SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
New‑PnPProvisioningCommunicationSite Creates a communication site object SharePoint Online
Apply‑PnPProvisioningHierarchy Adds a provisioning sequence object to a provisioning site object SharePoint Online
New‑PnPProvisioningHierarchy Creates a new provisioning hierarchy object SharePoint Online
Read‑PnPProvisioningHierarchy Loads/Reads a PnP provisioning hierarchy from the file system and returns an in-memory instance of this template. SharePoint Online
Save‑PnPProvisioningHierarchy Saves a PnP provisioning hierarchy to the file system SharePoint Online
Test‑PnPProvisioningHierarchy Tests a provisioning hierarchy for invalid references SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Add‑PnPProvisioningSequence Adds a provisioning sequence object to a provisioning hierarchy SharePoint Online
Get‑PnPProvisioningSequence Returns one ore more provisioning sequence object(s) from a provisioning hierarchy SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
New‑PnPProvisioningSequence Creates a new provisioning sequence object SharePoint Online
Add‑PnPProvisioningSite Adds a provisioning sequence object to a provisioning hierarchy SharePoint Online
Get‑PnPProvisioningSite Returns one ore more provisioning sequence object(s) from a provisioning hierarchy SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Add‑PnPProvisioningSubSite Adds a provisioning sequence object to a provisioning site object SharePoint Online
New‑PnPProvisioningTeamNoGroupSite Creates a team site without an Office 365 group object SharePoint Online
New‑PnPProvisioningTeamNoGroupSubSite Creates a team site subsite with no Office 365 group object SharePoint Online
New‑PnPProvisioningTeamSite Creates a team site object SharePoint Online
Add‑PnPProvisioningTemplate Adds a provisioning template object to a provisioning hierarchy SharePoint Online
Apply‑PnPProvisioningTemplate Applies a provisioning template to a web SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Convert‑PnPProvisioningTemplate Converts a provisioning template to an other schema version SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPProvisioningTemplate Generates a provisioning template from a web SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
New‑PnPProvisioningTemplate Creates a new provisioning template object SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Read‑PnPProvisioningTemplate Loads/Reads a PnP file from the file system SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Save‑PnPProvisioningTemplate Saves a PnP provisioning template to the file system SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
New‑PnPProvisioningTemplateFromFolder Generates a provisioning template from a given folder, including only files that are present in that folder SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Set‑PnPProvisioningTemplateMetadata Sets metadata of a provisioning template SharePoint Server 2013, SharePoint Server 2016, SharePoint Online

Publishing

Cmdlet Description Platform
Set‑PnPAvailablePageLayouts Sets the available page layouts for the current site SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Set‑PnPDefaultPageLayout Sets a specific page layout to be the default page layout for a publishing site SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Add‑PnPHtmlPublishingPageLayout Adds a HTML based publishing page layout SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Add‑PnPMasterPage Adds a Masterpage SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Add‑PnPPublishingImageRendition Adds an Image Rendition if the Name of the Image Rendition does not already exist. This prevents creating two Image Renditions that share the same name. SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPPublishingImageRendition Returns all image renditions or if Identity is specified a specific one SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Remove‑PnPPublishingImageRendition Removes an existing image rendition SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Add‑PnPPublishingPage Adds a publishing page SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Add‑PnPPublishingPageLayout Adds a publishing page layout SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Add‑PnPWikiPage Adds a wiki page SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Remove‑PnPWikiPage Removes a wiki page SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPWikiPageContent Gets the contents/source of a wiki page SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Set‑PnPWikiPageContent Sets the contents of a wikipage SharePoint Server 2013, SharePoint Server 2016, SharePoint Online

Records Management

Cmdlet Description Platform
Get‑PnPInPlaceRecordsManagement Returns if the place records management feature is enabled. SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Set‑PnPInPlaceRecordsManagement Activates or deactivates in the place records management feature. SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Disable‑PnPInPlaceRecordsManagementForSite Disables in place records management for a site. SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Enable‑PnPInPlaceRecordsManagementForSite Enables in place records management for a site. SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Clear‑PnPListItemAsRecord Undeclares a list item as a record SharePoint Online
Set‑PnPListItemAsRecord Declares a list item as a record SharePoint Online
Test‑PnPListItemIsRecord Checks if a list item is a record SharePoint Online
Get‑PnPListRecordDeclaration Returns the manual record declaration settings for a list SharePoint Online
Set‑PnPListRecordDeclaration The RecordDeclaration parameter supports 4 values: AlwaysAllowManualDeclaration NeverAllowManualDeclaration UseSiteCollectionDefaults SharePoint Online
Cmdlet Description Platform
Get‑PnPSearchConfiguration Returns the search configuration SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Set‑PnPSearchConfiguration Sets the search configuration SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPSearchCrawlLog Returns entries from the SharePoint search crawl log SharePoint Online
Submit‑PnPSearchQuery Executes an arbitrary search query against the SharePoint search index SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPSiteSearchQueryResults Executes a search query to retrieve indexed site collections SharePoint Server 2013, SharePoint Server 2016, SharePoint Online

SharePoint Recycle Bin

Cmdlet Description Platform
Clear‑PnPRecycleBinItem Permanently deletes all or a specific recycle bin item SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPRecycleBinItem Returns the items in the recycle bin from the context SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Move‑PnPRecycleBinItem Moves all items or a specific item in the first stage recycle bin of the current site collection to the second stage recycle bin SharePoint Online
Restore‑PnPRecycleBinItem Restores the provided recycle bin item to its original location SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPTenantRecycleBinItem Returns the items in the tenant scoped recycle bin SharePoint Online

SharePoint WebHooks

Cmdlet Description Platform
Add‑PnPWebhookSubscription Adds a new Webhook subscription SharePoint Online
Remove‑PnPWebhookSubscription Removes a Webhook subscription from the resource SharePoint Online
Set‑PnPWebhookSubscription Updates a Webhook subscription SharePoint Online
Get‑PnPWebhookSubscriptions Gets all the Webhook subscriptions of the resource SharePoint Online

Sites

Cmdlet Description Platform
Set‑PnPAppSideLoading Enables the App SideLoading Feature on a site SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPAuditing Get the Auditing setting of a site SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Set‑PnPAuditing Set Auditing setting for a site SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Test‑PnPOffice365GroupAliasIsUsed Tests if a given alias is already used SharePoint Online
Add‑PnPRoleDefinition Adds a Role Definition (Permission Level) to the site collection in the current context SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPRoleDefinition Retrieves a Role Definitions of a site SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Remove‑PnPRoleDefinition Remove a Role Definition from a site SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPSite Returns the current site collection from the context. SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Set‑PnPSite Sets Site Collection properties. SharePoint Online
Add‑PnPSiteCollectionAdmin Adds one or more users as site collection administrators to the site collection in the current context SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPSiteCollectionAdmin Returns the current site collection administrators of the site collection in the current context SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Remove‑PnPSiteCollectionAdmin Removes one or more users as site collection administrators from the site collection in the current context SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Install‑PnPSolution Installs a sandboxed solution to a site collection. WARNING! This method can delete your composed look gallery due to the method used to activate the solution. We recommend you to only to use this cmdlet if you are okay with that. SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Uninstall‑PnPSolution Uninstalls a sandboxed solution from a site collection SharePoint Server 2013, SharePoint Server 2016, SharePoint Online

Taxonomy

Cmdlet Description Platform
Get‑PnPSiteCollectionTermStore Returns the site collection term store SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Export‑PnPTaxonomy Exports a taxonomy to either the output or to a file. SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Import‑PnPTaxonomy Imports a taxonomy from either a string array or a file SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Set‑PnPTaxonomyFieldValue Sets a taxonomy term value in a listitem field SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPTaxonomyItem Returns a taxonomy item SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Remove‑PnPTaxonomyItem Removes a taxonomy item SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPTaxonomySession Returns a taxonomy session SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPTerm Returns a taxonomy term SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
New‑PnPTerm Creates a taxonomy term SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPTermGroup Returns a taxonomy term group SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
New‑PnPTermGroup Creates a taxonomy term group SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Remove‑PnPTermGroup Removes a taxonomy term group and all its containing termsets SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Import‑PnPTermGroupFromXml Imports a taxonomy TermGroup from either the input or from an XML file. SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Export‑PnPTermGroupToXml Exports a taxonomy TermGroup to either the output or to an XML file. SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPTermSet Returns a taxonomy term set SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Import‑PnPTermSet Imports a taxonomy term set from a file in the standard format. SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
New‑PnPTermSet Creates a taxonomy term set SharePoint Server 2013, SharePoint Server 2016, SharePoint Online

Tenant Administration

Cmdlet Description Platform
Get‑PnPAccessToken Returns the current OAuth Access token SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPHideDefaultThemes Returns if the default / OOTB themes should be visible to users or not. SharePoint Online
Set‑PnPHideDefaultThemes Defines if the default / OOTB themes should be visible to users or not. SharePoint Online
Get‑PnPHubSite Retrieve all or a specific hubsite. SharePoint Online
Register‑PnPHubSite Registers a site as a hubsite SharePoint Online
Set‑PnPHubSite Sets hubsite properties SharePoint Online
Unregister‑PnPHubSite Unregisters a site as a hubsite SharePoint Online
Add‑PnPHubSiteAssociation Connects a site to a hubsite. SharePoint Online
Remove‑PnPHubSiteAssociation Disconnects a site from a hubsite. SharePoint Online
Grant‑PnPHubSiteRights Grant Permissions to associate sites to Hub Sites. SharePoint Online
Add‑PnPOffice365GroupToSite Groupifies a classic team site by creating an Office 365 group for it and connecting the site with the newly created group SharePoint Online
Disable‑PnPPowerShellTelemetry Disables PnP PowerShell telemetry tracking SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Enable‑PnPPowerShellTelemetry Enables PnP PowerShell telemetry tracking. SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPPowerShellTelemetryEnabled Returns true if the PnP PowerShell Telemetry has been enabled. SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
New‑PnPSite BETA: This cmdlet is using early release APIs. Notice that functionality and parameters can change. Creates a new site collection SharePoint Online
Add‑PnPSiteCollectionAppCatalog Adds a Site Collection scoped App Catalog to a site SharePoint Online
Remove‑PnPSiteCollectionAppCatalog Removes a Site Collection scoped App Catalog from a site SharePoint Online
Add‑PnPSiteDesign Creates a new Site Design on the current tenant. SharePoint Online
Get‑PnPSiteDesign Retrieve Site Designs that have been registered on the current tenant. SharePoint Online
Invoke‑PnPSiteDesign Apply a Site Design to an existing site. * Requires Tenant Administration Rights * SharePoint Online
Remove‑PnPSiteDesign Removes a Site Design SharePoint Online
Set‑PnPSiteDesign Updates a Site Design on the current tenant. SharePoint Online
Get‑PnPSiteDesignRights Returns the principals with design rights on a specific Site Design SharePoint Online
Grant‑PnPSiteDesignRights Grants the specified principals rights to use the site design. SharePoint Online
Revoke‑PnPSiteDesignRights Revokes the specified principals rights to use the site design. SharePoint Online
Add‑PnPSiteScript Creates a new Site Script on the current tenant. SharePoint Online
Get‑PnPSiteScript Retrieve Site Scripts that have been registered on the current tenant. SharePoint Online
Remove‑PnPSiteScript Removes a Site Script SharePoint Online
Set‑PnPSiteScript Updates an existing Site Script on the current tenant. SharePoint Online
Get‑PnPStorageEntity Retrieve Storage Entities / Farm Properties from either the Tenant App Catalog or from the current site if it has a site scope app catalog. SharePoint Online
Remove‑PnPStorageEntity Remove Storage Entities / Farm Properties from either the tenant scoped app catalog or the current site collection if the site has a site collection scoped app catalog SharePoint Online
Set‑PnPStorageEntity Set Storage Entities / Farm Properties in either the tenant scoped app catalog or the site collection app catalog. SharePoint Online
Get‑PnPTenant Returns organization-level site collection properties SharePoint Online
Set‑PnPTenant Sets organization-level site collection properties SharePoint Online
Get‑PnPTenantAppCatalogUrl Retrieves the url of the tenant scoped app catalog. SharePoint Online
Get‑PnPTenantCdnEnabled Retrieves if the Office 365 Content Delivery Network has been enabled. SharePoint Online
Set‑PnPTenantCdnEnabled Enables or disabled the public or private Office 365 Content Delivery Network (CDN). SharePoint Online
Add‑PnPTenantCdnOrigin Adds a new origin to the public or private content delivery network (CDN). SharePoint Online
Get‑PnPTenantCdnOrigin Returns the current registered origins from the public or private content delivery network (CDN). SharePoint Online
Remove‑PnPTenantCdnOrigin Removes an origin from the Public or Private content delivery network (CDN). SharePoint Online
Get‑PnPTenantCdnPolicies Returns the CDN Policies for the specified CDN (Public Private).
Set‑PnPTenantCdnPolicy Sets the CDN Policies for the specified CDN (Public Private).
Clear‑PnPTenantRecycleBinItem Permanently deletes a site collection from the tenant scoped recycle bin SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Restore‑PnPTenantRecycleBinItem Restores a site collection from the tenant scoped recycle bin SharePoint Online
Disable‑PnPTenantServicePrincipal Enables the current tenant's "SharePoint Online Client" service principal. SharePoint Online
Enable‑PnPTenantServicePrincipal Enables the current tenant's "SharePoint Online Client" service principal. SharePoint Online
Get‑PnPTenantServicePrincipal Returns the current tenant's "SharePoint Online Client" service principal. SharePoint Online
Revoke‑PnPTenantServicePrincipalPermission Revokes a permission that was previously granted to the "SharePoint Online Client" service principal. SharePoint Online
Get‑PnPTenantServicePrincipalPermissionGrants Gets the collection of permission grants for the "SharePoint Online Client" service principal SharePoint Online
Approve‑PnPTenantServicePrincipalPermissionRequest Approves a permission request for the current tenant's "SharePoint Online Client" service principal SharePoint Online
Deny‑PnPTenantServicePrincipalPermissionRequest Denies a permission request for the current tenant's "SharePoint Online Client" service principal SharePoint Online
Get‑PnPTenantServicePrincipalPermissionRequests Gets the collection of permission requests for the "SharePoint Online Client" service principal SharePoint Online
Get‑PnPTenantSite Retrieve site information. SharePoint Online
New‑PnPTenantSite Creates a new site collection for the current tenant SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Remove‑PnPTenantSite Removes a site collection SharePoint Online
Set‑PnPTenantSite Set site information. SharePoint Online
Add‑PnPTenantTheme Adds or updates a theme to the tenant. SharePoint Online
Get‑PnPTenantTheme Returns all or a specific theme SharePoint Online
Remove‑PnPTenantTheme Removes a theme SharePoint Online
Get‑PnPTimeZoneId Returns a time zone ID SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPWebTemplates Returns the available web templates. SharePoint Online

User and group management

Cmdlet Description Platform
Get‑PnPGroup Returns a specific SharePoint group or all SharePoint groups in site. SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
New‑PnPGroup Adds group to the Site Groups List and returns a group object SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Remove‑PnPGroup Removes a group from a web. SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Set‑PnPGroup Updates a group SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPGroupMembers Retrieves all members of a group SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPGroupPermissions Returns the permissions for a specific SharePoint group SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Set‑PnPGroupPermissions Adds and/or removes permissions of a specific SharePoint group SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPUser Returns site users of current web SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
New‑PnPUser Adds a user to the built-in Site User Info List and returns a user object SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Remove‑PnPUser Removes a specific user from the site collection User Information List SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Remove‑PnPUserFromGroup Removes a user from a group SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Add‑PnPUserToGroup Adds a user to a group SharePoint Server 2013, SharePoint Server 2016, SharePoint Online

User Profiles

Cmdlet Description Platform
New‑PnPPersonalSite Office365 only: Creates a personal / OneDrive For Business site SharePoint Online
New‑PnPUPABulkImportJob Submit up a new user profile bulk import job. SharePoint Online
Get‑PnPUPABulkImportStatus Get user profile bulk import status. SharePoint Online
Get‑PnPUserProfileProperty You must connect to the tenant admin website (https://:-admin.sharepoint.com) with Connect-PnPOnline in order to use this cmdlet. SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Set‑PnPUserProfileProperty Office365 only: Uses the tenant API to retrieve site information. You must connect to the tenant admin website (https://:-admin.sharepoint.com) with Connect-PnPOnline in order to use this command. SharePoint Online

Utilities

Cmdlet Description Platform
Send‑PnPMail Sends an email using the Office 365 SMTP Service or SharePoint, depending on the parameters specified. See detailed help for more information. SharePoint Server 2013, SharePoint Server 2016, SharePoint Online

Web Parts

Cmdlet Description Platform
Get‑PnPClientSideComponent Retrieve one or more Client-Side components from a page SharePoint Online
Remove‑PnPClientSideComponent Removes a Client-Side component from a page SharePoint Online
Set‑PnPClientSideText Set Client-Side Text Component properties SharePoint Online
Set‑PnPClientSideWebPart Set Client-Side Web Part properties SharePoint Online
Get‑PnPWebPart Returns a webpart definition object SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Remove‑PnPWebPart Removes a webpart from a page SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPWebPartProperty Returns a web part property SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Set‑PnPWebPartProperty Sets a web part property SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Add‑PnPWebPartToWebPartPage Adds a webpart to a web part page in a specified zone SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Add‑PnPWebPartToWikiPage Adds a webpart to a wiki page in a specified table row and column SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPWebPartXml Returns the webpart XML of a webpart registered on a site SharePoint Server 2013, SharePoint Server 2016, SharePoint Online

Webs

Cmdlet Description Platform
Set‑PnPIndexedProperties Marks values of the propertybag to be indexed by search. Notice that this will overwrite the existing flags, i.e. only the properties you define with the cmdlet will be indexed. SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Add‑PnPIndexedProperty Marks the value of the propertybag key specified to be indexed by search. SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Remove‑PnPIndexedProperty Removes a key from propertybag to be indexed by search. The key and it's value remain in the propertybag, however it will not be indexed anymore. SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPIndexedPropertyKeys Returns the keys of the property bag values that have been marked for indexing by search SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPPropertyBag Returns the property bag values. SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Remove‑PnPPropertyBagValue Removes a value from the property bag SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Set‑PnPPropertyBagValue Sets a property bag value SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Request‑PnPReIndexWeb Marks the web for full indexing during the next incremental crawl SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPRequestAccessEmails Returns the request access e-mail addresses SharePoint Online
Set‑PnPRequestAccessEmails Sets Request Access Emails on a web SharePoint Online
Get‑PnPSubWebs Returns the subwebs of the current web SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPWeb Returns the current web object SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
New‑PnPWeb Creates a new subweb under the current web SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Remove‑PnPWeb Removes a subweb in the current web SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Set‑PnPWeb Sets properties on a web SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Invoke‑PnPWebAction Executes operations on web, lists and list items. SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Set‑PnPWebPermission Set permissions SharePoint Server 2013, SharePoint Server 2016, SharePoint Online

Workflows

Cmdlet Description Platform
Add‑PnPWorkflowDefinition Adds a workflow definition SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPWorkflowDefinition Returns a workflow definition SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Remove‑PnPWorkflowDefinition Removes a workflow definition SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPWorkflowInstance Get workflow instances SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Resume‑PnPWorkflowInstance Resume a workflow SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Start‑PnPWorkflowInstance Starts a workflow instance on a list item SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Stop‑PnPWorkflowInstance Stops a workflow instance SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Add‑PnPWorkflowSubscription Adds a workflow subscription to a list SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Get‑PnPWorkflowSubscription Return a workflow subscription SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
Remove‑PnPWorkflowSubscription Remove workflow subscription SharePoint Server 2013, SharePoint Server 2016, SharePoint Online

Additional resources