The need was to copy my existing TFS VM to another environment (Windows 8) to test run some scenarios including backup and recovery, upgrade (2010 to 2012), compatibility (Windows 8), etc. As a result, following issues had been seen and thus this notes of how to address them.

Background information

  • This was a all-in-one TFS VM (vhd) contains the following
    • Windows 2008 R2
    • SQL 2008 R2
    • TFS 2010
    • MOSS 2007 coming with TFS 2010
    • VS 2010
  • This was a cross-domain move/copy
  • Services were run as service accounts


  • Change Service Accounts – This was due to the domain change, but it would be a good exercise to know the impact
    • Change the service accounts for SQL from the Services admin tools – this will be run just fine after the change
    • Change the service account for TFS from its admin console – more steps needed to be taken, see below
  • Change Server Name – Even this VM was moved to another domain, I still wanted to change the server name to test out how many things needed to be changed to bring it back to work
    • Change the server name from the computer property – This was most straight forward activity
    • TFS cannot connect to the SQL server
      • If you went to TFS Admin console, scroll down inside the <Application Tier>, under the <Data Tier Summary>, you will find TFS was still trying to connect to the old SQL server (again, the SQL was installed on the same VM thus SQL’s name was changed as well).
      • Since TFS is going through its web services to do the actual background jobs, you will have to modify the connection string from its web.config of those services
        • IIS -> Sites -> Team Foundation Server -> tfs
        • C:\Program Files\Microsoft Team Foundation Server 2010\Application Tier\Web Services\web.config
    • TFS cannot connect to the Reporting service
      • Go back to TFS -> Application Tier -> Reporting ->
      • Modify the server (of course in my case the service account was changed too)
      • And now it was complaining about not able to add the old service account to various databases (DataWarehouse, Analysis, etc.)
        • You cannot delete any server level service account from any GUI (Admin Console or Visual Studio) – Have to do it from the command line
        • C:\Program Files\Microsoft Team Foundation Server 2010\Tools\tfssecurity
        • tfssecurity /g- “Team Foundation Service Accounts” n:”<OldDomain\OldServiceAccount>” /server:http://<YourTfsServerName&gt;:8080/tfs