The following example displays a list of all workspaces for the current user on the current computer.
c:\projects>tf workspaces
The following example displays the list of all workspaces for all users on all computers that have been created on the server teamserver2.
c:\projects>tf workspaces /owner:* /computer:* /server:teamserver2.
The following example displays detailed information about all workspaces that the current user has created for the teamserver2 server.
c:\projects>tf workspaces /computer:* /format:detailed /server:teamserver2
The following example displays detailed information including a list of workspace mappings about the workspace “WS1,” which is owned by the current user and is located on the current computer.
c:\projects>tf workspaces /format:detailed /server:teamserver2 WS1
The following example removes all cached workspaces from the cache for server teamserver2.
c:\projects>tf workspaces /remove:* /server:teamserver2