• Grumpy Wookie

  • Archives

  • Top Posts

  • Recent Visitors

  • Blog Stats

    • 346,274 hits

TFS Workspace for another user

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 :

Advertisements

10 Responses

  1. 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.

  2. Thanks for the solution, it helped a lot.

  3. In my case the answer was to add the project workspace after the /tfs and that fixed my problem.

  4. Thank you! This was exactly my problem, and it worked perfectly.

  5. thanks!!! it solved my problem 🙂

  6. This is what I needed, thanks! And thanks for finding this for me, Bing (first hit).

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

%d bloggers like this: