r/SCCM 7d ago

Discussion Clean Up Distribution Points

Hi,

to clean up our distribution points we used the MS ContentLibraryCleanup tool. It worked fine, but slow.

With our new network infrastructure, we have no connection from the DP to the site server and SQL server. This means the tool cannot be executed from the DP, but must be executed from the site server, which makes it even slower. Very slow.

I was wondering if you have any other tool to perform this task. I found this:

https://github.com/SaltyPeaches/CM_DPManagement/blob/main/PackageMismatches.ps1

but this is only checking the WMI on the server.

I assume the MS tool has some bad joins and because how a DP stores files, it takes ages to loop through them. On the other hand with LINQ it should be much faster, even remote from the site server.

Any ideas?

7 Upvotes

4 comments sorted by

6

u/petecd77 6d ago

How do you get new content to it if it cannot see the primary?

1

u/ReputationOld8053 5d ago

usually the primary pushes the content and not the DP asks for it ;)

2

u/petecd77 5d ago

The way it was worded, it sounded like there was no line of sight whatsoever. That’s why I was just confirming. We have an imaging depot that is completely firewalled off and I have to deal with rules every time we replace servers. Not fun to deal with

1

u/cp07451 6d ago

The content tool doesn't need to connect to the site server. You just run the tool on that DP without using the "/ps" switch if I remember.