Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$pnpModule = Get-Module PnP.PowerShell -ListAvailable | Sort-Object Version -Descending | Select-Object -First 1
$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