Cannot find type [Microsoft.SharePoint.SPSite]
Michael Carey
- One minute read - 26 words**Issue: **New-Object : Cannot find type [Microsoft.SharePoint.SPSite]: make sure the assembly containing this type is loaded. At D:\data\Permissions.ps1:253 char:23 + $rootSite = New-Object «« Microsoft.SharePoint.SPSite($siteUrl)
Resolution:[System.Reflection.Assembly]::LoadWithPartialName(“Microsoft.SharePoint”)