Powered By Blogger

Friday, January 23, 2015

maintaining TFS workspace on Machine Name change

If your Build machine name changes, you will not be able to use your old workspace in TFS.
In that case you can recover the same by updating TFS using /updateComputerName switch.
This Instructs Team Foundation to update its tables to reflect a change in the name of a client computer. If you specify this option, you must also specify a team project collection by using the /collection option.

"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\TF.exe" workspaces /collection:http://myserver:8080/tfs/DefaultCollection  /updateComputerName:OldComputerName

Ex:
"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\TF.exe" workspaces /collection:http://tfsRVN:8080/tfs/RAHULN_Others /updateComputerName: RAHULN


No comments: