Running a report from a command prompt

While I was teaching a Reporting Services course recently, I was asked how to run a report from a command line. I could think of several techniques.

Using SQL server
My initial thought was to create a subscription to run the report, then use SQL stored procedure msdb.dbo.sp_start_job to run the subscription job, perhaps using SQLcmd from a command line.

Using a .Net application
Creating a small .Net application  using vb or C#. This link gives details of the method that a .net developer can make into an application. https://msdn.microsoft.com/en-us/library/reportexecution2005.reportexecutionservice.render.aspx

Using Powershell
For those who like working with Powershell, it is possible to make similar calls to the render method. http://blogs.technet.com/b/stefan_stranger/archive/2010/05/16/rendering-sql-reporting-reports-with-powershell.aspx

Using an rs.exe script
Finally using a .rss script that can be executed using the rs.exe command line utility. This link gives an example of this technique. http://sqlblog.com/blogs/roman_rehak/archive/2009/06/12/ssrs-report-rendering-from-command-prompt.aspx

Once you have created  some kind of script or app, it then becomes straightforward to pass appropriate parameters to the script.