Out of the box, no, but there are at least a couple of options via add-ons:
TFS Power Tools
Once installed:
- Open Source Control Explorer
- Right-click the item on which checkout is to be undone (or a parent folder of multiple files to be undone)
- Select Find in Source Control and then Status
- In the Find in Source Control dialog, leave the Status checkbox marked
- Optionally, enter a value for the Wildcard textbox
- Optionally, enter a username in the "Display files checked out to:" textbox and select that radio button
- Click Find
- This will result in a list of files
- Select the items to undo
- Right-click and select Undo
- Click Yes when prompted with "Undo all selected changes?"
Team Foundation Sidekicks
Another option is to use the Team Foundation Sidekicks application, which can be obtained here: http://www.attrice.info/cm/tfs/
It has a Status sidekick that allows you to query for checked out work items. Once a work item is selected, there are "Undo pending change" and "Undo lock" buttons that can be used.
Rights
Keep in mind that you will need the appropriate rights. The permissions are called "Undo other users' changes" and "Unlock other users' changes". These permissions can be viewed by:
- Right-clicking the desired project, folder, or file in Source Control 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 at the bottom