Introduction
PnP Team has updated the PnP PowerShell commands recently.
The team is deprecating the SPO commands and released new set of commands to be executed for performing PnP operations. More information can be found on the official github site here.
For example, the command used to connect to SharePoint site was Connect-SPOnline. It is now deprecated and the new command for connecting to the site will be Connect-PnPOnline.
New PnP PowerShell Commands
The list of new commands for PnP PowerShell operations is as follows.
AddPnPContentType
AddPnPContentTypeToDocumentSet
AddPnPContentTypeToList
AddPnPCustomAction
AddPnPDataRowsToProvisioningTemplate
AddPnPDocumentSet
AddPnPEventReceiver
AddPnPField
AddPnPFieldFromXml
AddPnPFieldToContentType
AddPnPFile
AddPnPFileToProvisioningTemplate
AddPnPFolder
AddPnPHtmlPublishingPageLayout
AddPnPIndexedProperty
AddPnPJavaScriptBlock
AddPnPJavaScriptLink
AddPnPListFoldersToProvisioningTemplate
AddPnPListItem
AddPnPMasterPage
AddPnPNavigationNode
AddPnPPublishingImageRendition
AddPnPPublishingPage
AddPnPPublishingPageLayout
AddPnPTaxonomyField
AddPnPUserToGroup
AddPnPView
AddPnPWebPartToWebPartPage
AddPnPWebPartToWikiPage
AddPnPWikiPage
AddPnPWorkflowDefinition
AddPnPWorkflowSubscription
ApplyPnPProvisioningTemplate
ClearPnPTenantRecycleBinItem
ClearPnpRecycleBinItem
ConnectPnPMicrosoftGraph
ConnectPnPOnline
ConvertPnPFolderToProvisioningTemplate
ConvertPnPProvisioningTemplate
CopyPnPFile
CopyPnPItemProxy
DisablePnPFeature
DisablePnPResponsiveUI
DisconnectPnPOnline
EnablePnPFeature
EnablePnPResponsiveUI
EnsurePnPFolder
ExecutePnPQuery
ExportPnPTaxonomy
ExportPnPTermGroupToXml
FindPnPFileGetPnPAccessToken
GetPnPAppInstance
GetPnPAuditing
GetPnPAuthenticationRealm
GetPnPAzureADManifestKeyCredentials
GetPnPContentType
GetPnPContentTypePublishingHubUrl
GetPnPContext
GetPnPCustomAction
GetPnPDocumentSetTemplate
GetPnPEventReceiver
GetPnPFeature
GetPnPField
GetPnPFile
GetPnPFolder
GetPnPFolderItem
GetPnPGroup
GetPnPGroupPermissions
GetPnPHealthScore
GetPnPHomePage
GetPnPIndexedPropertyKeys
GetPnPJavaScriptLink
GetPnPList
GetPnPListItem
GetPnPMasterPage
GetPnPProperty
GetPnPPropertyBag
GetPnPProvisioningTemplate
GetPnPProvisioningTemplateFromGallery
GetPnPPublishingImageRendition
GetPnPRecycleBinItem
GetPnPRequestAccessEmails
GetPnPSearchConfiguration
GetPnPSite
GetPnPSiteClosure
GetPnPSiteCollectionTermStore
GetPnPSitePolicy
GetPnPSiteSearchQueryResults
GetPnPStoredCredential
GetPnPSubWebs
GetPnPTaxonomyItem
GetPnPTaxonomySession
GetPnPTenantRecycleBinItem
GetPnPTenantSite
GetPnPTerm
GetPnPTermGroup
GetPnPTermSet
GetPnPTheme
GetPnPTimeZoneId
GetPnPUnifiedGroup
GetPnPUserProfileProperty
GetPnPView
GetPnPWeb
GetPnPWebPart
GetPnPWebPartProperty
GetPnPWebPartXml
GetPnPWebTemplates
GetPnPWikiPageContent
GetPnPWorkflowDefinition
GetPnPWorkflowSubscription
ImportPnPAppPackage
ImportPnPTaxonomy
ImportPnPTermGroupFromXml
ImportPnPTermSet
InstallPnPSolution
InvokePnPWebAction
LoadPnPProvisioningTemplate
MovePnPFile
MovePnPFolder
MovePnPItemProxy
MovePnpRecycleBinItem
NewPnPExtensbilityHandlerObject
NewPnPGroupNewPnPList
NewPnPPersonalSite
NewPnPProvisioningTemplate
NewPnPProvisioningTemplateFromFolder
NewPnPTenantSite
NewPnPTerm
NewPnPTermGroup
NewPnPTermSet
NewPnPUnifiedGroup
NewPnPUser
NewPnPWeb
RemovePnPContentType
RemovePnPContentTypeFromDocumentSet
RemovePnPContentTypeFromList
RemovePnPCustomAction
RemovePnPEventReceiver
RemovePnPField
RemovePnPFieldFromContentType
RemovePnPFile
RemovePnPFileFromProvisioningTemplate
RemovePnPFolder
RemovePnPGroup
RemovePnPIndexedProperty
RemovePnPJavaScriptLink
RemovePnPList
RemovePnPListItem
RemovePnPNavigationNode
RemovePnPPropertyBagValue
RemovePnPPublishingImageRendition
RemovePnPTaxonomyItem
RemovePnPTenantSite
RemovePnPTermGroup
RemovePnPUnifiedGroup
RemovePnPUserFromGroup
RemovePnPView
RemovePnPWeb
RemovePnPWebPart
RemovePnPWikiPage
RemovePnPWorkflowDefinition
RemovePnPWorkflowSubscription
RenamePnPFile
RenamePnPFolder
RequestPnPReIndexList
RequestPnPReIndexWeb
RestorePnPTenantRecycleBinItem
RestorePnpRecycleBinItem
ResumePnPWorkflowInstance
SavePnPProvisioningTemplate
SendPnPMail
SetPnPAppSideLoading
SetPnPAuditing
SetPnPAvailablePageLayouts
SetPnPContext
SetPnPDefaultColumnValues
SetPnPDefaultContentTypeToList
SetPnPDefaultPageLayout
SetPnPDocument
SetField
SetPnPFileCheckedIn
SetPnPFileCheckedOut
SetPnPGroup
SetPnPGroupPermissions
SetPnPHomePage
SetPnPIndexedProperties
SetPnPList
SetPnPListItem
SetPnPListPermission
SetPnPMasterPage
SetPnPMinimalDownloadStrategy
SetPnPPropertyBagValue
SetPnPProvisioningTemplateMetadata
SetPnPRequestAccessEmails
SetPnPSearchConfiguration
SetPnPSiteClosure
SetPnPSitePolicy
SetPnPTaxonomyFieldValue
SetPnPTenantSite
SetPnPTheme
SetPnPTraceLog
SetPnPUnifiedGroup
SetPnPUserProfileProperty
SetPnPWeb
SetPnPWebPartProperty
SetPnPWikiPageContent
StopPnPWorkflowInstance
SubmitPnPSearchQuery
UninstallPnPAppInstance
UninstallPnPSolution
Comments