title: Unattended TFS Build Controller/Agent installation
body: <p>I´m scripting our build server dependencies and I'm having a little trouble getting the TFS 2010 build service configured unattended.</p>
  <p>This is what I run from my script.</p>
  <pre><code>y:\Visual Studio Team Foundation Server 2010\TFS-x64\setup.exe /q /UnattendFile &quot;y:\Visual Studio Team Foundation Server 2010\TFS-x64\TFS2010Build.ini&quot;
  </code></pre>
  <p>and in the ini file I have the following:</p>
  <pre><code>&lt;Configuration&gt;
    &lt;TeamBuild&gt;
      &lt;CollectionUri&gt;
        &lt;Uri&gt;http://tfs2010.somedomain:8080/tfs/default&lt;/Uri&gt;
      &lt;/CollectionUri&gt;
      &lt;Credentials&gt;
        &lt;FullName&gt;somdomain\TFS2010BUILD&lt;/FullName&gt;
        &lt;Password&gt;some password&lt;/Password&gt;
      &lt;/Credentials&gt;
      &lt;Controller&gt;
        &lt;ControllerName&gt;LocalController&lt;/ControllerName&gt;
        &lt;CustomAssemblyPath /&gt;
        &lt;MaxConcurrentBuilds&gt;0&lt;/MaxConcurrentBuilds&gt;
      &lt;/Controller&gt;
      &lt;Agent&gt;
        &lt;AgentName&gt;Agent1&lt;/AgentName&gt;
        &lt;ControllerName&gt;LocalController&lt;/ControllerName&gt;
        &lt;BuildDirectory&gt;$(SystemDrive)\Builds\$(BuildAgentId)\$(BuildDefinitionPath)&lt;/BuildDirectory&gt;
      &lt;/Agent&gt;
        &lt;!--AgentName&gt;Agent2&lt;/AgentName&gt;
        &lt;ControllerName&gt;LocalController&lt;/ControllerName&gt;
        &lt;BuildDirectory&gt;$(SystemDrive)\Builds\$(BuildAgentId)\$(BuildDefinitionPath)&lt;/BuildDirectory&gt;
      &lt;/Agent&gt;--&gt;
      &lt;Port&gt;9191&lt;/Port&gt;
      &lt;UseSSL&gt;False&lt;/UseSSL&gt;
    &lt;/TeamBuild&gt;
  &lt;/Configuration&gt;
  </code></pre>
  <p>I get TFS2010 Build service intalled, but not configured for some reason? When I start tfsmgmt.exe I'm presented with the wizard option.</p>
  <p><img src="https://i.stack.imgur.com/C3dEN.png" alt="enter image description here" /></p>
  <p>Any thoughts?</p>
  <p>Thanks in advance</p>