Add, list or remove all or specified library shares in a team project. TfsLabConfig TPLibraryShare /collection: /teamProject: ...

Add, list or remove all or specified library shares in a team project.

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

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

Examples:

TfsLabConfig TPLibraryShare /Add
             /collection:http://abc:8080/TFS/DefaultCollection
             /teamProject:*
             /teamProjectCollectionTPLibraryShare:* 

TfsLabConfig TPLibraryShare /Add
             /collection:http://abc:8080/Collection0
             /teamProject:*
             /teamProjectCollectionTPLibraryShare:collectionLibraryShare1
             /name:ls1

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

TfsLabConfig TPLibraryShare /Delete
             /collection:http://abc:8080/Collection0
             /teamProject:Project1
             /name:ls1

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