In this post, you’ll learn how to find the SCCM cache size using PowerShell. With just one PowerShell command, you can also find the location of the CCMCache folder, the size of the cache, and the name of the computer.
The CCMCache folder is the location where SCCM downloads all the files needed for various installations. This applies not only to applications but also to patches, task sequences, and other items. By default, this folder is set to C:\Windows\ccmcache. Learn how to configure cache size of clients in SCCM.
You should avoid manually deleting files from the CCMCache folder using Windows Explorer or the command line. This action can cause issues with the Configuration Manager client. We do not recommend using the registry to make any changes to the cache size of the SCCM client. Check out the safe method to delete the application content from SCCM cache.
Find SCCM Cache Size using PowerShell
Use the following steps to find the SCCM cache size using PowerShell:
- Log in to the computer on which you want to determine the cache size.
- Click Start and launch the PowerShell as an administrator.
- Run the below PowerShell command to determine the CCMCache size of the SCCM client.
Get-WmiObject -Namespace ROOT\CCM\SoftMgmtAgent -Query "Select Size from CacheConfig" | Select Size