System Center 2012 Configuration Manager : Troubleshooting and Resolving Content Mismatch Warnings on a Distribution Point with Powershell

December 12, 2013 at 8:09 pm in CM12, CM12 R2, CM12 SP1, powershell, R2, SCCM 2012, sccm 2012 R2, SCCM 2012 SP1, script by Kenny Buntinx [MVP]


You might see content mismatch warnings in System Center 2012 Configuration Manager when content validation runs and determines that there is a discrepancy between the expected list of packages in WMI on the distribution point and the packages in the content library as shown in the screenshot below.

You can see an example of this scenario in the following screenshot where a distribution point has a Warning state and there is a status message in the Details tab in the Details pane that shows there was a failure to retrieve the package list.


How to detect it and how to fix it manually is described here in the following article :

BUT , that is all manual work , and we hate that , don’t we Smile with tongue out . Doing this on around 35 Distribution points by hand isn’t an easy solution. Luckily we have an excellent PowerShell scripter in our team and all credits for creating this script goes to  Bart Serneels. He has written a PowerShell script to do all the work . He was happy to share this with you guys on the Technet Gallery.

As the package is not on the site and you must remove the package from WMI on the distribution point. The namespace to connect to is root\sccmdp. The class that contains the list of packages expected is SMS_PackagesInContLib.

Bart Serneels made a script to automate the removal of the invalid instances (those of which the package does not exist in the console anymore) in WMI on all distribution points. You can download it from


Hope it Helps ,

Kenny Buntinx

MVP Enterprise Client Management

Tweet about this on TwitterShare on FacebookShare on Google+Share on LinkedInPin on Pinterest