How to cancel check of other users in TFS?

As a TFS resident administrator, sometimes I will be asked to cancel the check (usually a lock) that the user has in a specific file that was checked in the original control.

How do you cancel another user’s verification?

+74
tfs tfs2010 tfs2013 tfs2012 tfs2008
Nov 06 '09 at 21:18
source share
4 answers

There are at least two different ways to do this:

Command line

There is a command line utility called Tf.exe that comes with Team Explorer. Find the documentation here . You can access it by running the Visual Studio command prompt window. Command syntax:

tf undo [/workspace:workspacename[;workspaceowner]] [/server:servername] [/recursive] itemspec [/noprompt] 

For one file

 tf undo /workspace:workspacename;workspaceowner $/projectname/filename.cs 

GUI

The second - through a graphical interface, but not standard - you need to install TFS Power Tools . See how to use this method for details.

Keep in mind that using any method, you will need the appropriate rights. The permissions are called Undo Changes by Other Users and Undo Changes by Other Users. These permissions can be viewed:

  • Right-click the project, folder or file in the source explorer
  • Select Properties
  • Select the Security tab
  • Select the appropriate user or group in the "Users and Groups" section at the top
  • View the "Permissions for [user / group]:" section below

Delete workspace

 tf workspace /delete WorkspaceName;User /server:http://server:8080/tfs/MyTeamCollection 
+112
Nov 06 '09 at 21:21
source share

The easiest way I've found is to use the free TFS Sidekick app . It has the ability to view and cancel other user checks.

+34
Nov 06 '09 at 21:21
source share

I had the problem itself, and I found an easier way to clean up old workspaces.

1) In visual studio, an open source explorer.

2) In the "Workspace" drop-down list, select "Workspaces ..."

3) A dialog box appears indicating the workspaces on your current PC. Select Show Remote Workspaces

4) Now you will also see workspaces from your previous PC (if they belong to the same user account). Select your old workspaces and click Delete. This should remove the old workspace from TFS along with any persistent checks.

I'm sure Arne found a solution, but I hope this helps other users solve this problem.

+19
Feb 25 '14 at 11:43
source share

Select the file in the TFS sidekick, and then above the list you have "Undo Pending Change." Click on this and the change will be canceled :) The icon is similar to the "Cancel" icon in MS word Get third-party TFS users from http://www.attrice.info/cm/tfs/index.htm

+8
Mar 26 '12 at 11:08
source share



All Articles