Have just commenced a new Visual Studio project, and wanting to load all files (from previous engagement) into our Team Foundation Server.
So – needing to generate a workspace (aka working folder).
But – even though there are NONE displayed, I’m getting an error that the folder I’ve chosen is in use :
The path C:\Projects is already mapped in workspace PC123;DOMAIN\USER
Have found a great post about how to use the “TF” command line utility (from Visual Studio Command Prompt) to list any workspaces :
Team Foundation Server – Working folder is already in use
tf workspaces /computer:PC123 /owner:* /format:detailed
And – sure enough, it looks like there’s another workspace for a different user profile – with the same PC name (PC123).
tf workspaces /computer:PC123 /owner:* /format:detailed /server:http://tfs:8080
===============================================================================
Workspace: PC123
Owner : *ME*
Computer : PC123
Comment :
Server : tfs.domain
Working folders:
===============================================================================
Workspace: PC123
Owner : *SOMEONE-ELSE*
Computer : PC123
Comment :
Server : tfs.domain
Working folders:
$/AAA: C:\Projects
$/AAA/BBB/CCC: C:\Projects\AAA\BBB\CCC
Not sure how/why this has happened – perhaps a duplicate PC-NAME ?
Anyway – here’s the command to REMOVE the baaad workspace – clear it out all and start again.
tf workspace /delete PC123;other-user /server:http://tfs:8080
A deleted workspace cannot be recovered.
Workspace ‘PC123′ on server ‘http://tfs.8080′ has 0 pending change(s).
Are you sure you want to delete the workspace? (Yes/No)
Got a permission/security error now – will have to go ask the administrator :
TF14044: Access Denied: User DOMAIN\*ME* needs the AdminWorkspaces global permission(s).
More Info :
- Team Foundation Version Control Command Line Summary document
- Visual Studio Team System : Tf Command-Line Utility Commands (MSDN)
Filed under: .NET, Visual Studio 2008



Thanks for the post; it resolved the issue when we moved the tfs to a new server. Make sure user has a tfs console admin permission, tfs will return “Unathorized” error otherwise.
thanks, it solved my problem
[...] http://grumpywookie.wordpress.com/2008/04/02/tfs-workspace-for-another-user/ [...]
Thanks for the solution, it helped a lot.
In my case the answer was to add the project workspace after the /tfs and that fixed my problem.
Thank you! This was exactly my problem, and it worked perfectly.
thanks!!! it solved my problem
This is what I needed, thanks! And thanks for finding this for me, Bing (first hit).