Add, list or remove all or specified host groups in a team project. TfsLabConfig TPHostGroup /collection: /teamProject: /add ...

Add, list or remove all or specified host groups in a team project.

TfsLabConfig TPHostGroup
    /collection:
    /teamProject: 
          [/add 
              /teamProjectCollectionHostGroup:(* |)
              /name:
              [/description:]
              [/NoPrompt]]
          [/delete /name: 
              [/noprompt]]
          [/list]

The TPHostGroup option is used to manage host groups for a team project.
This command lets you create, remove and list the host groups in a team 
project. Some options require that you include additional parameters.
    /Add
        Adds the specified host group to the team project.
        You must specify the /teamProjectCollectionHostGroup
        and /name options with /Add.
    /Delete 
        Removes the specified host group from the team project.
        You must specify the /name options with /Delete.
    /List
        Lists all the host groups that are bound to the specified team 
        project.

Examples:

TfsLabConfig TPHostGroup /Add
             /collection:http://abc:8080/TFS/DefaultCollection
             /teamProject:*
             /teamProjectCollectionHostGroup:* 

TfsLabConfig TPHostGroup /Add
             /collection:http://abc:8080/Collection0
             /teamProject:*
             /teamProjectCollectionHostGroup:collectionHostGroup1
             /name:hg1

TfsLabConfig TPHostGroup /Delete
             /collection:http://abc:8080/TFS/DefaultCollection
             /teamProject:*
             /name:* 

TfsLabConfig TPHostGroup /Delete
             /collection:http://abc:8080/Collection0
             /teamProject:Project1
             /name:hg1

TfsLabConfig TPHostGroup /List
             /collection:http://abc:8080/TFS/DefaultCollection
             /teamProject:Project2