Tuesday, November 25, 2008

Visual Studio Team System: recover your workspaces

Use TFPT.exe to move your TFS workspaces to another computer, or to remap them when you have changed your computer name.

Usage:

TFPT.exe workspace /updatecomputername workspaceName

Example:

D:\TFS_Workspaces\>"c:\Program Files\Microsoft
Team Foundation Server 2008 Power Tools\TFPT.exe" workspace /updatecomputername
"Important Workspace"
The computer name for Important Workspace has been changed to NEWCOMPUTERNAME.

If you get an error like "Unable to determine the source control server", try invoking tfpt from within a directory that is already mapped to Team Foundation source control.

Resources: