Removing Files From C:\windows\system32\dllcache

warcrow

Lifer
Jan 12, 2004
11,078
11
81
Unofrtunately we've found--on our network of a few thousand machines--that even though we've removed the games from Windows (freecell, minesweep, etc) via the Start menu and the Add/Remove Programs in the Control Panel, the actual game files still reside in C:\windows\system32\dllcache. The IT head wants these files removed ASAP.

We've come up with two options to remove these files:

- Have SCCM go out and remove all the game executables in C:\windows\system32\dllcache (freecell.exe, minesweep.exe, etc).
- Have SCCM run SFP /PURGECACHE on all the machines. This command is easier and clears up ~500MB space (which actually isnt really that big of a deal, but it's a nice bonus), but I'm reluctant to go this route because it clears out everything in C:\windows\system32\dllcache. I'm afraid some of these files, though duplicates, could cause an issue in the future if they're missing.

I'm curious what your opinion is on these two methods and which on seems more effecient and safe in the long run?
 

Modelworks

Lifer
Feb 22, 2007
16,240
7
76
dllcache is another case of MS making things confusing. DLL cache is not used unless a system file is removed then the file is copied from DLL cache back to its original folder. I think a better name would be dll backup.

deleting everything in the cache is unwise because if anything removes a required system file there will be nothing to restore it with. The best way is to just delete the individual files you want deleted and not the entire cache.