title: Using Compare-object for file size
body: <p>I'm trying to use Compare-Object to compare the contents of two folders. I want to find all files with the same Length property.</p>
  
  <p>Easy enough with</p>
  
  <pre><code>Compare-Object -ReferenceObject $one  -DifferenceObject $two -Property Length -IncludeEqual -ExcludeDifferent
  </code></pre>
  
  <p>but if I only specify Length and not Name as a Property I get "@{Length=0; SideIndicator===}" as the output so I don't know the names of the matching files.</p>
  
  <p>If I use -PassThru it only returns the files that are the same in the -ReferenceObject so I don't have the names of the files in the -DifferenceObject</p>
  
  <p>Am I missing something or just the wrong tool for the job?</p>
  
  <p>Thanks</p>