title: How to use TFS PowerShell to get list of changesets and associated work items?
body: <p>I'm a novice with the PowerShell and TFS cmdlets and I'm trying to retrieve a list of changesets in an area path, and their associated work items.</p>
  
  <p>I've got as far as listing changesets since a certain date:</p>
  
  <pre><code>Get-TfsItemHistory "$/Project/Branch" -Version “D01/12/10~” -Recurse 
  </code></pre>
  
  <p>and also listing workitems since the same date:</p>
  
  <pre><code>Get-TfsItemHistory "$/Project/Branch" -Version "D01/12/10~" -Recurse | %{ $_.workitems }
  </code></pre>
  
  <p>Each query returns the same number of results, with the second query returning duplicate workitems.  This seems promising, as there are many changesets to workitems, so I assume I'm not far off combining the results.</p>