Ed Hintz points out that this is easily done with TFS Power Tools and wrote about it in 2007.
- In the Source Control Explorer, right click on a parent folder that contains the pending change and choose, “Find in Source Control”.
- Choose "Status…".
- Press the Find button. (optionally you can type in a user and\or wildcards if you want to narrow the search)
- You will be presented a “Find in Source Control” window.
- Select the pending change and press the undo button OR right click Undo…
- Done.
To unlock other user’s checked out files in TFS using the Visual Studio command prompt (useful if you don’t have power tools installed) a clear and simple post is here at http://www.interactivewebs.com/blog/index.php/dotnetnuke-modules/unlock-other-users-checked-out-files-in-tfs/
To unlock other user’s checked out files in TFS using the Visual Studio command prompt. to the point….
http://blogs.microsoft.co.il/blogs/srlteam/archive/2007/03/14/Undo_2F00_Unlock-for-others-in-TFS.aspx