0

When we run the below command on Powershell 7, to fetch detail of folder in the sharepoint.

Get-PnPProperty -ClientObject "david onedve/3200 in 400mb/Level 2" -Property Files, Folders

, we are getting below error: Get-PnPProperty: Cannot bind parameter 'ClientObject'. Cannot convert the "Microsoft.SharePoint.Client.Folder" value of type "Deserialized.Microsoft.SharePoint.Client.Folder" to type "Microsoft.SharePoint.Client.ClientObject".

However, its run successfully on Powershell 5.1

1 Answer 1

0

The PnP module is not compatible with PowerShell 7 as PnP requires .NET Framework and PowerShell 7 uses .NET Core.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.