Skip to content

Instantly share code, notes, and snippets.

@Vintaurus
Last active June 25, 2020 05:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Vintaurus/ce31c5e527bd7902f8f4ddce1019d152 to your computer and use it in GitHub Desktop.
Save Vintaurus/ce31c5e527bd7902f8f4ddce1019d152 to your computer and use it in GitHub Desktop.
Connect-PnPOnline -Url $siteUrl -CurrentCredentials
Get-PnPProvisioningTemplate -Out $provisioningTemplateFilePath -IncludeSearchConfiguration -IncludeNativePublishingFiles -PersistPublishingFiles -PersistBrandingFiles -Force
Get-Page -fileName $pageFileName
Get-WebParts -fileName $pageFileName
Get-Page -fileName $myTaskPageFileName
Get-WebParts -fileName $myTaskPageFileName
Get-ScriptFiles
Clear-PermissionsInProvisioningTemplate
Disconnect-PnPOnline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment