PowerShellScripts
PowerShellScripts copied to clipboard
Passing -Property to Compare-Object
Hey,
When passing properties on which objects should be compared actually no difference is made.
$props = @('SN','DN','CN') Compare-Object $1st $2nd -Property $props -IncludeEqual | ft Compare-Object $1st $2nd -IncludeEqual | ft
First and Second compare result in the same output