The following steps will allow you to build additional controllers and manage them, in TFS 2012. As always, I recommend doing a snapshot or backup of your server prior to making high-level changes such as this.
- First, open a Command Prompt window (as an Administrator).
- From the Windows 2012 Server screen right-click and go to All apps.
- Under the Windows System category right-click on Command Prompt and select the option to Run as administrator.
Note: You need to replace the [service name] with your build controller's service name. Also, you need to replace the [display name] as well with something that makes sense for you. I've included some best practice examples for you. "BuildService-TeamProjectCollectionName" and for the Display Name you would enter "Visual Studio Team Foundation Build Service Host (TeamProjectCollectionName)" for example. Make sure to remove the placeholder brackets [ ] and to keep spacing as it is below. Or this will not work.
sc.exe create [service name] binpath= "C:\Program Files\Microsoft Team Foundation Server 11.0\Tools\TFSBuildServiceHost.exe /NamedInstance:[service name]" DisplayName= "[display name]"
There is an easier way. Create a batch file (.BAT) on your desktop. Add the following code to it, modifying where appropriate and without the placeholder brackets [ ]:
:: Set the service host environment variable
set TFSBUILDSERVICEHOST.2012=[service name]
:: Open the Team Foundation Server Administration Console
"C:\Program Files\Microsoft Team Foundation Server 11.0\Tools\tfsmgmt.exe"
- Register a build controller + agent as explained here. Then unregister the build controller service.
- Re-register the build controller service. After which, modify the URL to use a different port.
- Register your build controller + agent as you normally would.
Good luck and I hope this helps.