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.
“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:
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.