Quickly Find SCCM Cache Size using PowerShell

In this post, you’ll learn how to find SCCM cache size using PowerShell. You can also find the location of CCMCache folder, size of the cache and computer name with a single PowerShell command.

The CCMCache folder is the location where the 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.

Cached content isn’t automatically deleted and is only removed if new content requires its disk space. It remains in the cache for the configured number of minutes after the client uses that content. If you configure the content with the option to persist content in the client cache, the client doesn’t automatically delete it. If the cache space is used by content that was downloaded within the configured number of minutes, and the client must download new content, either increase the cache size or choose the option to delete persisted cache content.

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. I would also recommend not to use the registry to make any changes to the cache size of 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 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 administrator.
  • Run the below PowerShell command to determine the ccmcache size of SCCM client.
Get-WmiObject -Namespace ROOT\CCM\SoftMgmtAgent -Query "Select Size from CacheConfig" | Select Size
Find SCCM Cache Size using PowerShell
Find SCCM Cache Size using PowerShell
Back to top button