Forum Discussion
Mihir Yelamanchili
Nov 21, 2018Brass Contributor
How to count files after migration?
I am migrating file share data to SP online using a tool. I am able to migrate the data. There are hundreds of files and folders that need to migrate to one document library. When I right click on an...
Djavan ROA
Dec 02, 2018Brass Contributor
Hi, does your count need to include versions of items ?
Mihir Yelamanchili
Dec 03, 2018Brass Contributor
No, not required to count versions.
- Djavan ROADec 03, 2018Brass Contributor
Have you tried something like this first?
Connect-PnPOnline -Url "https://<tenant>.sharepoint.com/sites/demo-dro1"
$doclib = Get-PnPList -Identity "Documents"
Write-Host ("Items count: " + $doclib.ItemCount)