title: Team Foundation Server: Move Root-Level Project
body: <p>I'm trying to clean up our work-site Team Foundation Server 2010 defaultcollection.</p>
  
  <p>Unfortunately we originally set it up with a whole bunch of projects at the root level of the defaultcollection.</p>
  
  <p>Now we want to clean it up by moving a bunch of those projects into a root-level archive directory, while preserving the history of the projects.</p>
  
  <p>This is proving extremely difficult. I've read a bunch of stuff online and run some trials, but I'm still having issues.</p>
  
  <p>Part of the problem is that projects at the root level seem to be "immune" to a bunch of "normal" actions you can perform on projects in general, such as the Move command (which is greyed-out).</p>
  
  <p>If I try to use the command line to perform the move like this:</p>
  
  <pre><code>tf.exe move $/TestProj $/Archive/TestProj/
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>TF10169: Unsupported pending change attempted on team project folder $/Test. Use the Project Creation Wizard in Team Explorer to create a project or the Team Project deletion tool to delete one.
  </code></pre>
  
  <p>So I figured I'd move the contents like this:</p>
  
  <pre><code>tf.exe move $/TestProj/* $/Archive/TestProj/
  </code></pre>
  
  <p>That worked, and history was preserved, but then when I deleted the original project like this:</p>
  
  <pre><code>TFSDeleteProject.exe /collection:MYSERVER\DefaultCollection TestProj /force
  </code></pre>
  
  <p>History was lost!</p>