I have a SharePoint online site which contain a document library named "Customer Share" >> and inside this library we have a folder named "Clients" >> and inside the "Clients" folder we have around 10,000 sub-folders representing clients.
Now i am trying to get all the 10,000 sub-folders >> then for each sub-folder to see what is the maximum last modified date of its content.
Now first step i tried to get the 10,000 sub-folders in batches to avoid any threshold error:-
$mainfolderUrl = "Customer Share/Clients" $customerFolders = Get-PnPFolderItem -FolderSiteRelativeUrl $mainfolderUrl -PageSize 3000 -ScriptBlock {} but i got this error:-
Get-PnPFolderItem: A parameter cannot be found that matches parameter name 'PageSize'. so can anyone advice how i can get the 10,000 sub-folders in batches?
Thanks