PowerShell One Liner for Count of all Documents in SharePoint 2010 Farm

Last week I had a client reach out to me asking for a count of all documents in their SharePoint 2010 internal farm. They are planning on implementing Metalogix StoragePoint and were working on estimates for the deployment.

After a bit of work with PowerShell I was able to throw together a single line of PowerShell that sum’s the entire environment for me.

 

Be Sociable, Share!
  1. this was very helpful! Thanks!!

  2. Hi , I was wondering if it will count all the documents in the document library and also within the folder inside the document library

    • Raj, this is the ItemCount that the SharePoint API is presenting, this should include all items inside of it including the items within the folders. I do not have a SharePoint farm available to test this in anymore though.

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">