— Change SCVMM Server —
C:\Program Files\Microsoft Team Foundation Server 2010\Tools>Tfsconfig.exe lab /settings /scvmmservername:<SCVMMServerName> /force
— Delete Lab Management setting associated with old/existing project collection —
Tfsconfig.exe lab /delete /collectionName:<TeamProjectCollectionName>
— List all Host Group
C:\Program Files\Microsoft Team Foundation Server 2010\Tools>tfsconfig.exe lab /hostGroup /collectionName:<TeamProjectCollectionName> /list
Logging sent to file C:\ProgramData\Microsoft\Team Foundation\Server Configuration\Logs\CFG_SET_URL_0929_142401.log
Command: lab
TfsConfig – Team Foundation Server Configuration Tool
Copyright (c) Microsoft Corporation. All rights reserved.
Name: All Hosts
Path: All Hosts
AttachByDefault: True
PlacementPolicy: Conservative
DNS Suffix: Not explicitly configured. Using Application Tier DNS Suffix <xxxxx.com>
— Change LabEnvironmentPlacementPolicy to ingore/allow deployment of VM despite of stopped VMs —
C:\Program Files\Microsoft Team Foundation Server 2010\Tools>tfsconfig.exe lab /hostGroup /collectionName:<TeamProjectCollectionName> /edit /name:”all hosts” /LabEnvironmentPlacementPolicy:aggressive
Logging sent to file C:\ProgramData\Microsoft\Team Foundation\Server Configuration\Logs\CFG_SET_URL_0929_142445.log
Command: lab
TfsConfig – Team Foundation Server Configuration Tool
Copyright (c) Microsoft Corporation. All rights reserved.
Are you sure you want to update the settings for this host group ? (Yes/No) yes
The requested changes were successfully applied.
Advertisements