SharePoint 2013 Hosting – : How to set the list view scope in SharePoint Online using PnP PowerShell?

I have a documents library named “Shared Documents” in which I want to set “Show all items without folders” property for “All Documents” list view.

You can download setup files from the releases section of the PnP PowerShell repository. Copy the below script and paste it in a notepad. Save the file as SetListView.ps1.SharePoint-2013-Hosting1

ViewScope enum:

Open PowerShell window and run the following command.

folderlocation – SetListView.ps1 file location

Run the following command