how to list the SSRS permissions in each folder in the reporting services server?

Posted on

Question :

I have the following powershell script that downloads all the RDL from a reporting services server.

I am not the author to whom I am very thankful. It has been very useful for downloading the RDLs.

#note this is tested on PowerShell v2 and SSRS 2008 R2
#marcelo miorelli
#How to Download All Your SSRS Report Definitions (RDL files) Using PowerShell
#Written by belle

#Here’s a short PowerShell script that :
#1. Connects to your report server
#2. Creates the same folder structure you have in your Report Server
#3. Download all the SSRS Report Definition (RDL) files into their respective folders

#In addition to backing up your Source Project, your ReportServer database, or good old RSScripter
#this is just another way you can “backup” or archive your reports.


$ReportServerUri = "http://qg-v-sqlrs-pr/Reportserver/Reportservice2005.asmx" #"http://yourreportserver/ReportServer/ReportService2005.asmx";
$Proxy = New-WebServiceProxy -Uri $ReportServerUri -Namespace SSRS.ReportingService2005 -UseDefaultCredential ;

#check out all members of $Proxy
#$Proxy | Get-Member

#second parameter means recursive
$items = $Proxy.ListChildren("/", $true) |
select Type, Path, ID, Name |
Where-Object {$_.type -eq "Report"};

#create a new folder where we will save the files
#PowerShell datetime format codes

#create a timestamped folder, format similar to 2011-Mar-28-0850PM
$folderName = Get-Date -format "yyyy-MMM-dd-hhmmtt";
$fullFolderName = "D:SSRS_Export" + $folderName

Answer :

Leave a Reply

Your email address will not be published. Required fields are marked *