TFS Source Control

To delete your local workspace

Source Control Explorer -> Workspace dropdown -> Workspaces -> Remove

Reporting on File Change history in TFS

Use the TFS command line utility, tf.exe with the preview option to get the latest, which results in a list of files changed since that changeset or date.

"C:\Program Files\Microsoft Visual Studio 12.0\Common7\IDE\tf.exe" get "$/Project/*.*" /version:T /recursive /preview

CodeGuru: Team Foundation Server Source Control Explained

Reporting on TF Status

Use the TFS command line utility, tf.exe to display information about pending changes to items in one or more workspaces.

"C:\Program Files\Microsoft Visual Studio 12.0\Common7\IDE\tf.exe" status /collection:http://[TFS Server]:8080/tfs/[Collection Name] /user:* /format:Detailed

Fix TFS: The download file is corrupt. Please get the file again.

Cleanup server cache (TFS 2012)

Go to your application tier machine and delete whatever is under:
C:\Program Files\Microsoft Team Foundation Server 11.0\Application Tier\Web Services\_tfs_data if scared to delete - rename the folder. The folder with the same name will be created immidiately again by application tier anyway, then you can delete the old one. If files are in use - stop tfs server, perform deletion, start tfs server

Cleanup client cache

C:\Users\[username]\AppData\Local\Microsoft\Team Foundation\#.0\Cache

Exporting TF Status to Excel