Skip to content

Instantly share code, notes, and snippets.

@mirontoli
Last active June 27, 2019 15:07
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 mirontoli/c600950e3d7eba76ff366335943dad0b to your computer and use it in GitHub Desktop.
Save mirontoli/c600950e3d7eba76ff366335943dad0b to your computer and use it in GitHub Desktop.
# Install
Install-Module SharePointPnPPowerShellOnline -Scope CurrentUser
# check version
Get-Module SharePointPnPPowerShell* -ListAvailable | Select-Object Name,Version | Sort-Object Version -Descending
# Update
Update-Module SharePointPnPPowerShell*
# connect with mfa
Connect-PnPOnline -Url https://takana15.sharepoint.com/sites/tolle016 -SPOManagementShell -ClearTokenCache
# get template; you need to extract it, it is just a zip file
Get-PnPProvisioningTemplate -out template.pnp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment