title: How can I tell what is different in Compare-Object result?
body: <p>Given the following sample code (Powershell), which is based on <a href="https://stackoverflow.com/a/13505244/897326">this solution</a>:</p>
  
  <pre><code>$newFiles = @(Get-ChildItem -recurse -path "c:\path1");
  $oldFiles = @(Get-ChildItem -recurse -path "c:\path2");
  Compare-Object -ReferenceObject $newFiles -DifferenceObject $oldFiles -Property FullName,Length,LastWriteTime
  </code></pre>
  
  <p>I have <code>SideIndicator</code> to tell whether or not an object with the same property set is present in either sides. But this is usually of little use for production purposes. What I really need is key all objects by <code>FullName</code> and then compare by <code>Length</code> and <code>LastWriteTime</code> (for the above example). If different, be able to tell what exactly is different (<code>Length</code> or <code>LastWriteTime</code> or both), and how exactly (>, &lt;, =). Is it possible with Powershell, using built-in ways?</p>