Saturday, November 28, 2009

How to change the TFS 2008 Instance ID

The Instance ID is a GUID that is used to identify a TFS Server in a unique manner. This becomes problematic when restoring an existing TFS system to new hardware, creating a development environment of TFS and disaster recovery of an existing system. It stems from a client side problem when communicating with the TFS App Tier in a file called “ServerMap.xml” in the user’s profile directory. This should be run each time TFS is restored in the aforementioned scenarios. (Remember: You should be an Administrator in both Windows and Team Foundation Server)
On the App Tier of TFS; open a command prompt to the following location:
C:\Program Files\Microsoft Visual Studio 2008 Team Foundation Server\Tools
Next you will run the commands replacing <DataTierServer> as appropriate:
C:\Program Files\Microsoft Visual Studio 2008 Team Foundation Server\Tools>InstanceInfo.exe stamp /setup /install /rollback /d TFSWorkItemTracking,TFSBuild,TFSVersionControl,TFSIntegration,TfsWarehouse /s <DataTierServer>
C:\Program Files\Microsoft Visual Studio 2008 Team Foundation Server\Tools>InstanceInfo.exe stamp /d TFSWorkItemTracking,TFSBuild,TFSVersionControl,TFSIntegration,TfsWarehouse /s <DataTierServer>
This completes the task of changing the Instance ID. This will now resolve any issues with clients accidentally trying to communicate with the original server name.

No comments:

Post a Comment