New cmdlets in CPolydorou.General v2.9.0
There is a newer version of my CPolydorou.General PowerShell module that contains two new cmdlets, Remove-Duplicate and Compare-ObjectByProperty. Let me guide you through the usage of these cmdlets. We'll start with Compare-ObjectByProperty. This cmdlet compares two objects using the values on their properties. Let's take the following csv file as example: Property1 Property2 Property3 a b c a b d e f g e f g Using the Import-Csv cmdlet we are going to save it to the "data" variable for later use: PS C:\> $data = Import-Csv -Path .\data.csv PS C:\> $data Property1 Property2 Property3 --------- --------- --------- a b c a b d e f g e f g If we compare the third and the fourth object using the "-eq" operator we get that the objects are not equal which is correct since those are different objects. PS C:\> $data[2] -eq $data[3] False