Reputation: 35384
At the moment I often have to restart the Build Service of TFS 2012 server by remote desktop to this server at hit Restart as below snapshot.
I want a quicker way to restart this remotely. How can I do that?
Upvotes: 0
Views: 407
Reputation: 479
I think you can use PowerShell for this. Just put name of the service and address of your server.
$remoteMachineName = "Your machine address"
$serviceName = "Your Service Name"
Restart-Service -InputObject $(Get-Service -Computer $remoteMachineName -Name $serviceName);
Upvotes: 2