Last active
June 1, 2021 18:37
-
-
Save mirontoli/bcd96fe55af0c5ca28c9b03af012cb7a to your computer and use it in GitHub Desktop.
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
$pnpModule = Get-Module PnP.PowerShell -ListAvailable | Sort-Object Version -Descending | Select-Object -First 1 |
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
$pnpModule = Get-Module -ListAvailable PnP.Powershell | |
$base = $pnpModule.ModuleBase | |
Connect-PnPOnline $url -Interactive | |
Add-Type -Path "$base\Framework\Microsoft.SharePoint.Client.dll" | |
Add-Type -Path "$base\Framework\Microsoft.SharePoint.Client.Runtime.dll" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment