Showing results for 
Search instead for 
Did you mean: 
Advocate I
Advocate I

PowerShell to set Report Server refresh schedule

I am trying to use PowerShell to automate some of the more mundane tasks of day to day management of our Power BI Report Server using functions like Get-RsDataSource, Set-RsDataSource.  However, I am struggling with setting a refresh schedule in the same way.  Does anyone have any suggestions for me please?

Not applicable

I'm working on the same.  It should be possible, but currently am experiencing the same issue reported here:


The errors experience were using the client generation methods documented in the following thread by StolzHerz:


Further reading here:


In oder to refresh the report, there must first be an existing report schedule.  Once that's created, you can get the id of the Cache Plan from the report:




Then pass the CacheRefreshPlan id to the following "Refresh Now" API:



Hi Karl

Thanks for this, really useful information.  Slightly different issue for me, I am just trying to create a new refresh schedule where one does not exist yet.  Not had time to check out all the references you very kindly quoted, but will get to that later this week.

Thanks again.

@SkinnyPete63Gday, Did you get anywhere with this? Im tring to figure out how to copy the reports (and schedules) from one PBIRS server to another. Cheers.

Helpful resources

PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!