Saturday, October 1, 2022
HomePowershellPowerShell - Evaluating superior objects

PowerShell – Evaluating superior objects


Having two objects, we now use the Examine-MultipleObjects perform with the FlattenObject change, which first flattens a complicated object to a single dimension after which does property to property comparability.

As you possibly can see FlattenObject change transformed all nested objects right into a single dimension. It transformed nested hashtables arrays into properties on the highest degree. I’ve additionally added a brand new parameter referred to as ObjectsName, which permits overriding the identify of columns. It not must work with column names comparable to Supply, 1, 2, 3, and as a substitute, use your names. Discover I am additionally utilizing a Abstract change which permits for fast comparability the place values are the identical and the place these are completely different.

Examine-MultipleObjects -Objects $Object1, $Object2 -FlattenObject -Abstract -ObjectsName 'Object1', 'Object2' | Format-Desk *
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments