SSRS and PowerShell: Get report as Excel
问题 I'm trying to make PowerShell send a web request to our SSRS server and capture the results. I've hit a wall using the rs:FORMAT=EXCEL parameter in the SSRS url string. I have the following: First, init the credentials: $User = "MYDOMAIN\MyUser" $PWord = ConvertTo-SecureString -String "WooHooStringP$W0rd" -AsPlainText -Force $c = New-Object –TypeName System.Management.Automation.PSCredential –ArgumentList $User, $PWord Now, request a report: Invoke-WebRequest ` -UserAgent ([Microsoft