This command lists agents. Syntax - TfsBuild agents /collection:teamProjectCollectionUrl agentSpec agentSpec . Note: Wildcards ...

This command lists agents.
Syntax -
TfsBuild agents /collection:teamProjectCollectionUrl agentSpec [agentSpec ...]
Note: Wildcards are supported for the agent name.

agentSpec               The agent Uri or path (teamProject\agentName).