Windows Server - ServiceProfiles folder (Branchcache) filling up - what caused it?

Greg Dent 1 Reputation point
2022-07-13T09:44:05.24+00:00

Recently, and inexplicably, almost all of my Windows Server 2012R2 servers (and some 2016) have spammed out alerts on their C: drives completely filling up. Fortunately I got to them before the servers crashed and burned, and figured out what it was.

Basically, branchcache has somehow enabled itself on all of my servers (I didnt turn it on) and started filling up the C:\Windows\ServiceProfiles folder up with absolute trash data - like a virus. It apparently has no cap on storage consumption, and does not clean itself up. Some of these folders are small (only a few GB). Some of them are insane (50+GB).

Easy to resolve by running "netsh branchcache flush" from an elevated command line.

My question is, why has this suddenly started happening, what is it doing, and why has Microsoft decided that our servers need to keep all this rubbish? I have to now keep running this branchcache flush command to keep my servers simply from crashing and burning. I don't know if anyone told MS, but filling the C: drive up to capacity WILL kill the server. Who thought this was a good system?

Is there a GPO setting I can configure to disable this specific part of branchcache, and is there any reason it actually turned itself on? I've worked with branchcache before, but only on file servers, or local caching servers where I specifically set it up. I have no idea what this is and why it's turned on. Hoping its not one of my colleagues doing some black ops.

Many thanks!

Windows Server 2012
Windows Server 2012
A Microsoft server operating system that supports enterprise-level management, data storage, applications, and communications.
1,649 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,726 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.