TFS Start Job Agent Service

TeamFoundationServer2017.TfsStartJobAgentService (Task)

Start TFS Server Job Agent Service

Knowledge Base article:

Summary

This task starts the following TFS Windows NT Service:Visual Studio Team Foundation Server Task Scheduler, whose service name is TfsServerScheduler

Element properties:

TargetTeamFoundationServer2017.TfsApplicationTierServer
AccessibilityPublic
CategoryCustom
EnabledTrue
RemotableFalse
Timeout300

Member Modules:

ID Module Type TypeId RunAs 
TfsStartJobAgentService WriteAction Microsoft.Windows.ServiceControlManager.StartService Default

Source Code:

<Task ID="TeamFoundationServer2017.TfsStartJobAgentService" Accessibility="Public" Enabled="true" Target="TeamFoundationServer2017.TfsApplicationTierServer" Timeout="300" Remotable="true">
<Category>Custom</Category>
<WriteAction ID="TfsStartJobAgentService" TypeID="Windows!Microsoft.Windows.ServiceControlManager.StartService">
<ComputerName>$Target/Property[Type="TeamFoundationServer2017.TfsApplicationTierServer"]/ATComputerName$</ComputerName>
<ServiceName>$Target/Property[Type="TeamFoundationServer2017.TfsApplicationTierServer"]/JobAgentServiceName$</ServiceName>
</WriteAction>
</Task>