Set up maintanence for cache folder with CI and Baseline with powershell

There is the GUI-way and the Powershell-way…

This scripts creates:

  • A Configuration Item
  • A Baseline
  • A Baseline Deployment

The only thing you need is admin-rights in the ConfigMgr, select schedule-inteval and count and what collection to deploy to.

note: At the end when “New-CMBaselineDeployment” creates the deployment you can choose if you want it to only “Monitor” or to “Remediate”. If you add the option “-EnableEnforcement $True” at the end the action will be set to “Remediate”.

You will need two script from Maurice Daly from his blogpost SCCM Client Cache Maintenance – Configuration Baseline 

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.