Forum Discussion
RomanRomych
Mar 06, 2021Copper Contributor
Powershell hangs on Get-PnPListItem foreach
Hi All
I am trying to get a list of largest files or files with too many versions, so I am using $list = Get-PnPListItem , but it hangs on foreach($item in $list) as the folder has about 300000 items.
So is there any way to overcome this issue (do it in chunks etc)?
Thanks
No RepliesBe the first to reply