title: Error trying to download SSRS reports to a local folder using Powershell script
body: <p>I have (below) a Powershell script that takes source and destination parameters, then downloads all SSRS report files from the source folder into the destination folder:</p>
  
  <pre><code>param(
      [Parameter(Position=0,mandatory=$true)]
      [string]$sourceFolder, # Folder on the SSRS Report Server that contains reports, relative to root (eg "/Reports")
      [Parameter(Position=1,mandatory=$true)]
      [string]$destinationFolder, # Absolute path to which report files should be downloaded
      [string]$reportServerURI = "http://localhost/Reports"
  )
  
  Get-RsFolderContent -ReportServerUri $reportServerURI `
                      -RsFolder $sourceFolder | `
      Where-Object TypeName -eq "Report" | `
          Select-Object -ExpandProperty Path | `
          Out-RsCatalogItem -ReportServerUri $reportServerURI `
                            -Destination $destinationFolder
  </code></pre>
  
  <p>The call to <code>Get-RsFolderContent</code> causes the script to fail immediately with the below error:</p>
  
  <pre><code>Failed to establish proxy connection to http://localhost/Reports/ReportService2010.asmx : There was an error downloading 
  'http://localhost/Reports/ReportService2010.asmx'.
  At C:\Program Files\WindowsPowerShell\Modules\ReportingServicesTools\0.0.4.7\Functions\Utilities\New-RsWebServiceProxy.ps1:114 char:9
  +         throw (New-Object System.Exception("Failed to establish proxy ...
  +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : OperationStopped: (:) [], Exception
      + FullyQualifiedErrorId : Failed to establish proxy connection to http://localhost/Reports/ReportService2010.asmx : There was an e 
     rror downloading 'http://localhost/Reports/ReportService2010.asmx'.
  </code></pre>
  
  <p>I have tried this script both on a server, as well as against the SSRS instance installed on my local machine (SQL2014 in both cases). Any assistance with this issue would be much appreciated!</p>