PENDING clear ccm cache ps script

erikdeklerck

Member
12
1
3
Hello everyone :

when executing this script on a local machine it clears the ccm cache :
## Initialize the CCM resource manager com object
[__comobject]$CCMComObject = New-Object -ComObject 'UIResource.UIResourceMgr'## Get the CacheElementIDs to delete
$CacheInfo = $CCMComObject.GetCacheInfo().GetCacheElements()## Remove cache items
ForEach ($CacheItem in $CacheInfo) {
$null = $CCMComObject.GetCacheInfo().DeleteCacheElement([string]$($CacheItem.CacheElementID))
}

but not when deploying by sccm, any suggestions or other scripts ?
 
OP
E

erikdeklerck

Member
12
1
3
Based on this articel we are looking for a automated script to clear the ccm cache

when creating a package and deploying to a single device nothing is cleared.
 
Last edited:
OP
E

erikdeklerck

Member
12
1
3
Clean-CMClientCache.log : error 0x87D01203
Ccmexec is in use while the script tries to clear the cache.
So we could start a script form the client directly that starts another script that clears the cache and performs an exit ?
 

Garth

Well-Known Member
Staff member
1,127
99
48
Clean-CMClientCache.log : error 0x87D01203
Ccmexec is in use while the script tries to clear the cache.
So we could start a script form the client directly that starts another script that clears the cache and performs an exit ?
Where are you seeing this error? this doesn't look like it is coming from execmgr.log. Also this error says that something is running from the cache on no from the DP, like you said above.
 

jackaustin

New Member
4
0
1
I have over 250 GB of manual cache and I do not know what it contains, should I delete it, it takes up 25% of my SSD?
 
Last edited:

jconeal417

New Member
1
0
1
Hello,

I as well am tying to find a script for powershell that clears the ccmcache but no luck. Can anyone be of assistance?
 

Forum statistics

Threads
4,514
Messages
17,668
Members
9,104
Latest member
KoreBreach