Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I would like to view a list of ALL documents in ALL Document Libraries in Sharepoint 2010. The reason I would like to do this is because I need to review the documents that have been changed in the past X days.

Is this possible?

share|improve this question

1 Answer 1


Add-PSSnapin Microsoft.SharePoint.PowerShell -ea 0

$TimeFilter = (Get-Date).AddDays(-$X)
$SharepointUrl =

"Name, Time, Size KB" | Out-file XDocList.csv 

$SPWeb = Get-SPWebApplication $SharepointUrl | Get-SPSite -Limit All | Get-SPWeb -Limit All 

% ($SPitem in $ SPWeb){% ($list in $ SPitem.Lists)  
     If ($list.BaseType -eq "DocumentLibrary")  
     {% ($item in $list.Items) 
       {   If ($item.URL.StartsWith("_")) {Break} 
            If ($item.URL.EndsWith(".aspx")) {Break} 
            If ($item.File.TimeCreated -ge $TimeFilter)  
 $result = """$($SPitem.URL)/$($item.URL)"", $($item.File.TimeCreated), $( $item.File.Length/1KB)"
 $result | Out-File XDocList.csv -Append
   } } 
share|improve this answer
That's a neat script. Ideally I would like a web based solution (ie a page or view in the Sharepoint site). – McBainUK Feb 14 '13 at 14:45
Creating Silverlight Dashboards for SharePoint 2010 SharePoint 2010 Architectures Overview , use - Excel Services, Visio Services, Dashboards – STTR Feb 14 '13 at 16:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.