Set SCCM Cache Size with PowerShell

This script allows to increase the SCCM cache size of a workstation.

In the following example:

  • If free space on drive is equal or greater than 20 Go, the cache size is set to 10240 Mo
  • If free space on drive is equal or greater than 40 Go, the cache size is set to 20480 Mo