2014-11-11

Hi,

I created a script that will allow you to download all files stored in document libraries in a given site collection. You can find it here: http://sharepointrelated.com/2014/11/11/download-all-content-in-a-site-collection/

Run the script as follows:

Get-SPContent.ps1 -SiteCollection "" -Path ""

If the path does not exist, the script will prompt you to create it for you. Before the script runs, it also checks if the site collection exists.

The console shows which libraries were exported to your file system.

—– * Advanced * —–
If you have specific requirements as to which (type of) libraries you want to export, you can change the following line to fit your requirements:

$lists = $web.lists | ?{$_.itemcount -ge "1" -And $_.Hidden -eq $false -And $_.BaseType -eq "DocumentLibrary"}

#Excludes all hidden libraries and empty libraries

About the author 

Nico Martens