Sam
Sam

Reputation: 1525

TFS Cloned need to clear all mappings

I've just upgraded/cloned our TFS 2012 server to a new machine running 2018 SP1. However, all the workspaces were cloned as well and the mappings still exist. Is there a way to remove all the mappings in the DB so all users need to create new mapping for this new server?

I don't want anyone to overwrite their existing code...

Upvotes: 0

Views: 93

Answers (1)

Cece Dong - MSFT
Cece Dong - MSFT

Reputation: 31023

It's not suggested to delete files in database. You could use Workspaces Command to display the list of all workspaces for all users on all computers that have been created. For example:

c:\projects>tf workspaces /owner:* /computer:* /collection:http://myserver:8080/tfs/DefaultCollection

Then, use tf workspaces /remove Command to remove all cached workspaces from the cache in the team project collection. For example:

c:\projects>tf workspaces /remove:* /collection:http://myserver:8080/tfs/DefaultCollection

Upvotes: 2

Related Questions