Jim Rogers

Lives in Baton Rouge, LA, with two dogs, one cat, and one lovely wife. I'm a lead developer for GCR & Associates.

Katrin and Jim

Month List

Orphaned domain accounts on TFS

by Jim Jul 30, 2010 1:26 PM

Our IT guy recently deleted my domain account (because in Exchange 2010 “delete mailbox” really means “delete mailbox and domain account,” but that’s a whole unrelated story.)

One of the results of this fiasco for me was an orphaned workspace on Team Foundation Server, for my old account, which prevented me from mapping folders in source control with my new domain account.

image

“The working folder is already in use by the workspace…”

The solution to this problem is to delete the cached workspaces on the TFS Server. This is done with the tf command-line utility.

Start by displaying workspaces for all users:

tf workspaces /collection:http://myserver:8080/tfs/CollectionName /owner:*

Or just on the local machine:

tf workspaces
  /collection:http://myserver:8080/tfs/CollectionName
  /owner:* /computer:MYCOMPUTER

Then delete the problem workspace from the server. In my case it’s the old domain account with “:4” appended to the end, which differentiates it from the new account. The full designation for the the workspace is COMPUTER;DOMAIN\username.

tf workspace /delete /collection:http://myserver:8080/tfs/CollectionName MYCOMPUTER;DOMAINNAME\username:4

This last action requires administrative permissions on the server.

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading