Forum Discussion

_Mike-C's avatar
_Mike-C
Copper Contributor
Jun 14, 2022
Solved

Content Library Cleanup error

On my SCCM 2111 + Update KB12896009, I get the following error on one of my distribution points when I attempt to run the Content Library Cleanup tool:

 

ContentLibraryCleanup.exe /q /dp MYDP.mydomain.com /log \\MYPRIMARY\d$\Scripts\DP-Cleanup\ContentCleanup\MYDP
Gathering information...
Loading information from distribution point...
System.MissingMethodException: Method not found: 'System.String System.String.Format(System.IFormatProvider, System.String, System.Object)'.
at Microsoft.ConfigurationManager.ContentLibraryCleanup.CLContentLibrary.LoadContentLibraryFolders(String contentLibUsableDrives, String contentLibraryPath)
at Microsoft.ConfigurationManager.ContentLibraryCleanup.CLContentLibrary..ctor(String remoteDPFqdn, String primarySiteServerFqdn, String primarySiteCode)
at Microsoft.ConfigurationManager.ContentLibraryCleanup.Program.Main(String[] args)

 

The program errors immediately and does not generate any log file.  It does not occur on my other DPs.  I am executing this on the local DP from a CMD window with Administrator rights.

 

Any ideas on how to fix this?

Resources