I would like to run a script that clears out the SCCM cache on a client computer automatically. To do this, I have written a simple batch file:
if exist %Windir%\ccmcache (
RMDIR %Windir%\ccmcache /S /Q
)
I have deployed this as an "application" through SCCM. Basically I have created the deployment to run this script as the "uninstallation" of the program and chosen the detection method to check the existence of %Windir%\ccmcache
on the client machine. The problem is that when it's trying to clear out the cache, the batch file that's running is stored in the cache and then it fails. I get the following error:
The software change returned error code 0x87D01106(-2016407290).
Is there any work around for this?