简体   繁体   中英

Command line to restart Visual Studio Team Foundation Server 2012 build service?

Currently when we want to restart the service, we have to 1) log in the server, 2) open the Administration Console , 3) hit the restart/start button as below snapshot.

I'm looking for a faster way ie a command line to do that locally or via a remote machine.

Please share if you know how to.

在此处输入图片说明

This is just a regular Windows Service. With TFS 2013 you just do:

net stop TFSBuildServiceHost.2013
net start TFSBuildServiceHost.2013

I assume it's similar for TFS 2012 (just find Visual Studio Team Foundation Build Service Host in your Services listing, go to properties and it will tell you the Service Name that you need to use from the command-line).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM