Change the Computer Name for a TFS workspace

So today I had the enjoyment of the infrastructure team changing the workstation station naming conventions company wide. Which if you have been a developer for sometime this usually will make you cringe.

With Visual Studio Microsoft included a command line utility tf.exe which is usually located in *\Common7\IDE.  This utility allows you to do more administrative style commands that are hidden from the UI side of visual studio.

To updated the computer name for all of your workspaces in a collection you would run something like this:

tf workspaces /updateComputerName:oldcomputername /collection:http://tfsServer:8080/tfs/DefaultCollection

If  you are going across domain you might need to send the /login:NetworkName with it.

Advertisements
This entry was posted in Source Control and tagged . Bookmark the permalink.

One Response to Change the Computer Name for a TFS workspace

  1. Ajay Thakor says:

    Hey !

    It Worked.

    Thanks a lot.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s