compare-object left or right side only
问题 Quick Question Is there a better (i.e. more efficient / more concise) way to do this? compare-object $a $b | ?{$_.SideIndicator -eq '<='} Detail Compare-Object gives paramenters -excludeDifferent and -includeEqual to allow you to amend which results you get. using both gives you an inner join using just -includeEqual gives you a full outer join using just -excludeDifferent is pointless; as by default equal items are excluded, so it will now exclude everything. There are no options for