Ever needed to clear the ccmcache folder on a computer remotely? This post will tell you how
Make sure that you have right click tools installed in SCCM
- Find the computer in the SCCM console
- Right click on it, and go to right click tools > console tools > Interactive powershell prompt
- Use these commands to clear the ccmcache
$resman= New-Object -ComObject "UIResource.UIResourceMgr"
$cacheInfo=$resman.GetCacheInfo()
$cacheinfo.GetCacheElements() | foreach {$cacheInfo.DeleteCacheElement($_.CacheElementID)}
If you want to clean up the computer more, run these commands
WinSXS folder:
dism.exe /Online /Cleanup-Image /StartComponentCleanup /ResetBase
Run Windows Cleanup:
schtasks.exe /Run /TN "\Microsoft\Windows\Servicing\StartComponentCleanup"
To verify the free disk space, run this in the command prompt:
fsutil volume diskfree c:
Source:
- https://social.technet.microsoft.com/Forums/en-US/c84db477-3582-4cb5-840e-2838e9b6fb5f/sccm-2012-r2-clear-client-cache-cwindowsccmcache-with-command-line?forum=configmanagergeneral
- https://www.reddit.com/r/Windows10/comments/7jbbxc/how_do_i_clean_out_winsxs/
- https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/clean-up-the-winsxs-folder
- https://stackoverflow.com/questions/293780/free-space-in-a-cmd-shell
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.