title: Loop through Changesets after Get-TfsItemHistory - Powershell
body: <p>The powershell code below returns a list of Changesets. I would like to loop through each changeset so that I can access the properties. </p>
  
  <pre><code>$items = Get-TfsItemHistory $tfsProject -Version "D$lastChangeDateTime~" -Recurse -Server $tfs -IncludeItems
  </code></pre>
  
  <p>For example</p>
  
  <pre><code>foreach($item in $items)
  
  {
  
      Write-Host $item.ServerItem
  }
  </code></pre>
  
  <p>I believe the ServerItem property holds the path to the changed file on the server. There are other properties I would like to access.
  Any help on this would be appreciated.
  The purpose of this is to deploy the files associated in each changeset. I will be copying them over to the server and will need access to other properties for notifications, comments and other things.</p>