When I started my new job I needed to setup my visual studio and map all of my projects to my workspace. But when I attemped to map a project from teamserver to my local box, I got an error stating that this computer already has a workspace with that path in it. At first I didn't really understand how this could happen because my computer was just F&R'ed (formated and reinstalled), but after a few minutes I realized that this computer probably had the same name as it did before I got there. The person who used this computer left the company before I inherited it and left his workspaces on the server. After doing some digging around the web, I found a set of commands that would allow me to verify workspaces mapped to this computer and remove them if needed-- and because all of this information is stored on the server, reinstalling the client had no effect on it.
Here is how it all played out... the sections in red are the commands I used.
C:\Program Files\Microsoft Visual Studio 8\VC>tf workspaces /computer:ComputerName /owner:* /format:detailed /server:http://teamserver01:8080
Workspace: ComputerName
Owner : WESTCOTTJ
Computer : ComputerName
Comment :
Server : teamserver01
Working folders:
.
.
.
Workspace: ComputerName
Owner : TheOtherGuy
Computer : ComputerName
Comment :
Server : teamserver01
Working folders:
$/ProjectOne: D:\code\Projects\ProjectOne
$/ProjectTwo: D:\code\Projects\ProjectTwo
$/ProjectThree: D:\code\Projects\ProjectThree
$/ProjectFour: D:\code\Projects\ProjectFour
$/ProjectFive: D:\code\Projects\ProjectFive
$/ProjectSix: D:\code\Projects\ProjectSix
C:\Program Files\Microsoft Visual Studio 8\VC>tf workspace /delete /server:http://teamserver01:8080 ComputerName;TheOtherGuy
A deleted workspace cannot be recovered.
Workspace 'ComputerName;TheOtherGuy' on server 'http://teamserver01:8080' has 0 pending change(s).
Are you sure you want to delete the workspace? (Yes/No) yes
C:\Program Files\Microsoft Visual Studio 8\VC>tf workspaces /computer:ComputerName /owner:* /format:detailed /server:http://teamserver01:8080
Workspace: ComputerName
Owner : WESTCOTTJ
Computer : ComputerName
Comment :
Server : teamserver01
Working folders:
$/ProjectOne: D:\code\Projects\ProjectOne
$/ProjectTwo: D:\code\Projects\ProjectTwo
$/ProjectThree: D:\code\Projects\ProjectThree
$/ProjectFour: D:\code\Projects\ProjectFour
$/ProjectFive: D:\code\Projects\ProjectFive
$/ProjectSix: D:\code\Projects\ProjectSix
C:\Program Files\Microsoft Visual Studio 8\VC>
Summary
The first command was used to verify what workspaces are mapped to my computer name.
The second command was used to deleted TheOtherGuy's workspace that was left on the server.
The third and final step was to just verify that I was the only remaining workspace mapped to this computer name.