Powershell – List SCCM Duplicates

This is a simple script to list all the SCCM objects that have duplicate names

Now that you have the duplicates, how do you decide what to do with them?

Well first you could decide if any object does not have a client you could delete it?

That’s why I am reporting back $($item.IsClient)

You could also compare the ResourceID as ResourceIDs are never reused, they are always incremented so the one with the highest number is the newest one.

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.