Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

How to change the cache location for On-Premise Gateway

Does anyone know how to change the location of temporary cache files for on-premise gateway?


The C: drive on my gateway server is running out of space and I'd like to move the gateway cache files to a drive with more available space.


The gateway is writing data to C:\Users\PBIEgwService\AppData\Local\Temp\Microsoft\MashupProvider\Cache folder


I found a post that showed how to change spooler cache folder, C:\Users\PBIEgwService\AppData\Local\Microsoft\On-premises data gateway\Spooler, by editing a config file.  Hoping for something similar, but I don't find any references in the other config files.

Community Support
Community Support

Hi  @mweschenburg ,

Did you refer to this document:

You can open the configuration file through the reply in the above link, use Ctrl + F to search for keywords, and then find the following similar format to modify

<setting name="SpoolerDirectory" serializeAs="String">
<value>%LOCALAPPDATA%\Microsoft\On-premises data gateway\Spooler</value>


Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks Liu.  I had viewed that post and it did move the "spooler" directory.  However, it did not move the location of another cache folder which I cited in my original post, and that other directory.  So it really only solved half the problem.




Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

June 20 episode 7 with aka link 768x460.jpg

The Power BI Community Show

Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.

Top Solution Authors