Wednesday, August 28, 2013

Count of all Documents in SharePoint 2010 Farm with Powershell


Get-SPSite -Limit All | Get-SPWeb -Limit All | % { $_.Lists} | ? { $_ -is [Microsoft.SharePoint.SPDocumentLibrary] } | % { $total+= $_.ItemCount} ; $total

No comments:

Post a Comment