Downloading all SSRS report RDL files
This recipe shows how you can download all RDL files from your Report Server.
Getting ready
In this recipe, we will download all RDL files from the
SSRS Report Server into C:\SSRS\
in a subfolder structure that mimics the folder structure in the Report Server.
Identify your SSRS 2012 Report Server URL. We will need to reference the ReportService2010
web service, and you can reference it using:
<ReportServer URL>/ReportService2010.asmx
How to do it...
Let's explore the code required to download the RDL files from your Report Server.
Open the PowerShell console by going to Start | Accessories | Windows PowerShell | Windows PowerShell ISE.
Add the following script and run:
$VerbosePreference = "Continue" $ReportServerUri = "http://localhost/ReportServer/ReportService2010.asmx" $proxy = New-WebServiceProxy -Uri $ReportServerUri -UseDefaultCredential $destinationFolder = "C:\SSRS\" #create a new folder where we will save the files #we'll use a time-stamped...