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.
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.
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.
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