Monthly Archives: July 2013

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.

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


IndyVMUG Conference PowerCLI – Community Session Slides

Today I presented Intro to PowerCLI at the IndyVMUG Conference. As promised I am posting the PowerPoint slides that were used during that presentation. This session covered the basics you should know in PowerShell before you start playing with PowerCLI, a slight glimpse into using PowerCLI and some scripting.