Start TFS Server Job Agent Service

TeamFoundationServer2012.StartTFSJobAgent (Task)

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:

TargetTeamFoundationServer2012.TFSApplicationTier
AccessibilityPublic
CategoryCustom
EnabledTrue
RemotableFalse
Timeout300

Member Modules:

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

Source Code:

<Task ID="TeamFoundationServer2012.StartTFSJobAgent" Accessibility="Public" Enabled="true" Target="TeamFoundationServer2012.TFSApplicationTier" Timeout="300" Remotable="true">
<Category>Custom</Category>
<WriteAction ID="StartTFSJobAgentService" TypeID="Windows!Microsoft.Windows.ServiceControlManager.StartService">
<ComputerName>$Target/Property[Type="TeamFoundationServer2012.TFSApplicationTier"]/TFSATComputerName$</ComputerName>
<ServiceName>TFSJobAgent</ServiceName>
</WriteAction>
</Task>