Created
October 27, 2020 22:03
-
-
Save damsleth/c97e54d341fd697b56afe88c3c135bc4 to your computer and use it in GitHub Desktop.
Snippet for making old SharePointPnPPowerShellOnline scripts compatible with the newer, cross platform PnP.PowerShell cmdlets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(gmo -Name "PnP.PowerShell"){ | |
sal -Name Apply-PnPProvisioningTemplate -Value Invoke-PnPSiteTemplate | |
sal -Name Apply-PnPPTenantTemplate -Value Invoke-PnPTenantTemplate | |
sal -Name Get-PnPProvisioningTemplate -Value Get-PnPSiteTemplate | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment