I'm trying to use the Load-CSOMProperties.ps1 made by Gary Lapointe to report me if a folder "HasUniqueRoleAssignments". This is working fine for webs and lists but it doesn't seem to work for folders.
Load-CSOMProperties : Instance property 'HasUniqueRoleAssignments' is not defined for type Microsoft.SharePoint.Client.Folder At E:\OneDrive\Powershell\CSOM\DoStuff.ps1:108 char:9 + Load-CSOMProperties -object $folder -propertyNames @("HasUniq ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Load-CSOMProperties
Anyone has an example on how to do this?