Just lost a couple of hours to a curious issue with TFS.
Due to a recent brute-force hack attempt, we had to change all our AD user accounts to something more sophisticated are more resilient to dictionary attacks.
However, the change of user names caused some issues with TFS.
You should be running this script from a machine where you have Visual Studio Team Explorer installed to get the tf.exe, and you should be logged in as an administrative user of TFS instance you are accessing.
Workspaces, then select your workspace (it should match your computer name) and click Edit.
In the next dialog change the mapping for the root TFS node to the new location on your hard drive. You need to perform a "Get" on the whole TFS tree to update project associations.
Team Foundation Server (commonly abbreviated to TFS) is a Microsoft product that provides source code management (either with Team Foundation Version Control or Git), reporting, requirements management, project management (for both agile software development and waterfall teams), automated builds, lab management, testing and release management capabilities.
It covers the entire application lifecycle, and enables Dev Ops capabilities.
Team Foundation Server is available in two different forms: on-premises and online.