Workspaces command
TF workspaces [/owner:ownername] [/computer:computername]
[/server:servername] [/format: (brief|detailed)]
[/updateusername:oldusername] [/updatecomputername:oldcomputername]
WorkspaceName
TF workspaces/remove: (*|workspace1[,workspace2,...])
/server: (*|server)
Parameters
Parameters |
Description |
OwnerName |
Provides values to the /owner option. Specify "*" to match any user-created workspace. |
ComputerName |
Provides values to the /computer option. Specify "*" to match the workspace on any computer. |
ServerName |
Provides values to the /server option. For example: TeamServer2. |
WorkspaceName |
Specifies the name of the workspace for which you want to display related information. If workspacename is not specified, information about all workspaces in the server is displayed. You can also use the "*" wildcard character to display information about all workspaces in a server. |
Oldusername |
Provide the old user name for the /updateusername option. |
OldComputerName |
Provide the old computer name for the /updatecomputername option. |
Options |
Description |
/owner |
Specifies the name of the user who created the workspace. If the owner is not specified, Team Foundation returns only information about the workspace that is part of the current user. |
/computer |
Specifies the name of the client computer that is used to filter the list of server workspaces. If you do not specify a computer, Team Foundation returns only information about the workspace on the current computer. |
/server |
Specifies the name of the Team Foundation Server that is used to filter the list of specified workspaces. If servername is not provided, Team Foundation returns information about the workspaces on all known Team Foundation servers that use the local cache file. |
/format |
Specifies the format of the workspace information. Brief Returns the workspace information, but does not return a mapping. detailed also returns the workspace information and mappings. The verbose format can only be used when the /server option is specified. Brief is the default value. |
/updateusername |
Updates the security identity information on the Team Foundation server for users who have changed the network user name. If you specify this option, you must also specify a server by using the /server option. |
/updatecomputername |
Instructs Team Foundation to update its table to reflect changes in the client computer name. If you specify this option, you must also specify a server by using the /server option. |
/remove |
Removes the specified workspace item from the client cache for the specified server. |
TFS Workspace (Workspaces) command