备注
这些命令仅在 SCVMM 2012 服务器上工作,在 SCVMM 2008 R2 服务器上不支持。
使用 TPLibraryShare 命令将库共享从团队项目集合分配至集合中的单个团队项目或取消其分配。 通过库共享,可以访问虚拟环境(如 ISO 映像和虚拟硬盘)的基于文件的资源。 库共享在 System Center Virtual Machine Manager (SCVMM) 中创建,并由 Visual Studio Lab Management 分配到项目集合。
若要运行这些命令,您必须是指定集合的 Team Foundation Server 中的团队项目集合管理员组的成员。 此外,您必须是管理员或将委托的管理员角色成员在添加主机组的SCVMM服务器。
TfsLabConfig TPLibraryShare
/collection:collectionUrl
/teamProject:* | teamProjectName
[/add
/teamProjectCollectionLibraryShare:* | teamProjectCollectionLibraryShare
/name:teamProjectLibraryShareName
[/noprompt]]
[/delete
/name:* | teamProjectLibraryShareName
[/noprompt]]
[/list]
参数
选项 |
描述 |
---|---|
collection:collectionUrl |
必需。 指定团队项目集合所在的应用层 Team Foundation Server 的 URL。 |
add |
将指定的库共享分配到团队项目。 |
teamProjectCollectionLibraryShare:teamProjectCollectionLibraryShareName |
|
name:libraryShareName |
|
Delete |
从团队项目集合中移除指定的库共享。 |
noPrompt |
从命令窗口禁止显示进度和结果数据。 |
list |
列出指定到指定团队项目集合的所有库共享。 |
请参见
参考
TFSLabConfig TPCLibraryShare 命令