Retrieve the list of all workspaces from all users on all computers

Many times we need to retrieve the list of all workspaces from all users on all computers to remove unwanted workspaces. You can use the workspaces command to retrieve information about workspaces on the current computer, owned by a specified user, or for all workspaces associated with a specific Team Foundation Server.

Required Permissions
To use the workspaces command, you must have the Read permission set to Allow.

To undo all the changes in another user’s workspace, perform the following steps:

1.Click Start, click All Programs, click Microsoft Visual Studio 2010, point to Visual Studio Tools, and then click Visual Studio 10.0 Command Prompt.

2.Type the following command at the command prompt and replace the arguments with the appropriate parameter information for your needs:

tf workspaces /owner:* /computer:* /server:http://YourTeamFoundationServerComputer:8080/tfs

Example Output:

C:\Program Files\Microsoft Visual Studio 10.0\VC>tf workspaces /owner:* /computer:* /server:http://WIN-GS9GMUJITS8:8080/tfs

Collection: http://win-gs9gmujits8:8080/tfs
Workspace                                   Owner                                              Computer                             Comment
——————-                              ——————-                               —————                            ———————–
WIN-GS9GMUJITS8             aprist                                                 WIN-GS9GMUJITS8
WIN-GS9GMUJITS8             abuobe                                             WIN-GS9GMUJITS8


Leave a Reply

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

You are commenting using your 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

%d bloggers like this: