Dela via


TFSLabConfig GetServiceAccount Command

Lists the current service account that is used by test agents and build agents to communicate with the test and build controllers in a team project collection.

Required Permissions

To use the GetServiceAccount command, you must have the Manage Lab Locations permission at the Team Project Collection Host Group level. By default, the members of the TFS Administrators and Project Collection Administrators groups have this permission. For more information, see Team Foundation Server Permissions.

TFSLabConfig GetServiceAccount
    /collection:collectionUrl

Options

Option

Description

Collection:collectionUrl

The URL of the team project collection on the application-tier of Team Foundation Server.

Remarks

The service account of a team project collection is set by the TfsLabConfig SetServiceAccount command or in the User Account tab of the Create Team Project Collection dialog box.

Example

For increased readability in this example, command options are listed on separate lines. In a command prompt window, type all options for a command on the same line.

This example lists the user account for a team project collection.

tfslabconfig /getserviceaccount
    /collection:http://contoso:8080/TFS/DefaultCollection

See Also

Concepts

TFSLabConfig Command Reference

TFSConfig Lab Command Reference

Configuring and Administering Lab Management