Managing TFS Workspaces

Posted by Enrique Lima on Geeks with Blogs See other posts from Geeks with Blogs or by Enrique Lima
Published on Thu, 03 Jun 2010 13:52:28 GMT Indexed on 2010/06/03 19:56 UTC
Read the original article Hit count: 149

Filed under:

You are the administrator (or since you may be the one that knows the most about it) and you need to do some cleanup on what is connected and perhaps even cleanup after people that have left the organization and left some code checked out in their workspace.

What permissions do I need?

You will need to have Administer Workspaces permission to perform the following tasks.

The commands.

In order to execute the commands, you will need to open a Visual Studio Command Prompt, once there you will be able to use the tf command.  This has a nice set of options, which I will be providing a listing for later on in another post.

To list all workspaces registered:

tf workspaces /collection:<url to your TPC> <workspace>;<owner>

To delete a specific workspace:

tf workspace /delete /server:<url to your TPC> <workspace>;<owner>

If for any reason a workspace has embedded spaces, then surround that with “” (double quotes).

© Geeks with Blogs or respective owner