In this article we will create configuration item and Configuration baselines for CCM Cache cleanup
launch SCCM console –>go to Assets and compliance—right click on Configuration Items—create Configuration Item
Name the Configuration item and select Windows Desktop and Sever(Custom) and Click Next
Select windows 10 and click Next
Click on New
Provide name and Select setting type>Script and Data type>String> Click on Edit Script.
Edit Discovery Script and mention this script and Click ok
Click on Remediation Script and select this script. Click Ok
Click on Compliance Rules and click New
Specify the setting below. and click ok
You will see the below Compliance Setting
Click Apply and Ok and Click on Next
The Configuration Item has been successfully created.
Now we will create Configuration Baselines
Right click on Configuration Baseline and select Create configuration Baseline
Give a Name,description and click on Add Configuration Item
Select the configuration item and Click on Add and Click Ok
Click Ok and Now we will deploy this baseline on windows 10 collection.
Select the CCMCache Cleanup and Click on Deploy
Select the ccmcache Cleanup and Click on Add and Select the Remediate non Complaint rules when supported and Allow remediation outside the maintenance window
Select the collection for this configuration baseline deployment and Click Ok
56.977429
24.131691