I'm trying to compare to MECM outputs from $cmAppBefore = Get-CMApplication -LocalizedDisplayName $cmAppName | Select-Object *
(to an after object). The objects returned are standard objects as well as an SDMPackageXML, which is a string based XML without a lot of header information in it.
I suppose this would be applicable to any robust Powershell object from Exchange or AD etc ... I'd like to compare a before and after return value of the Get-CMApplication cmdlet and compare the objects property by property recursively, showing the differences. How can a Powershell object be enumerated recursively, property by property (with many different data types) for comparison?