Start SQL Agent Service on Cluster from DB Engine

Microsoft.SQLServer.2012.StartClusteredSQLAgentFromDBEngine (Task)

Start SQL Agent Service on Cluster from DB Engine.
Note that all SQL Express editions do not support clustering.

Element properties:

TargetMicrosoft.SQLServer.2012.DBEngine
AccessibilityInternal
CategoryMaintenance
EnabledTrue
RemotableFalse
Timeout300

Member Modules:

ID Module Type TypeId RunAs 
WA WriteAction System.CommandExecuter Default

Source Code:

<Task ID="Microsoft.SQLServer.2012.StartClusteredSQLAgentFromDBEngine" Target="SQL2012Core!Microsoft.SQLServer.2012.DBEngine" Accessibility="Internal" Enabled="true" Remotable="false">
<Category>Maintenance</Category>
<WriteAction ID="WA" TypeID="System!System.CommandExecuter">
<ApplicationName>%windir%\system32\cluster.exe</ApplicationName>
<WorkingDirectory>%windir%\system32</WorkingDirectory>
<CommandLine>/cluster:$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$ resource "$Target/Property[Type="SQL!Microsoft.SQLServer.DBEngine"]/AgentClusterName$" /online</CommandLine>
<TimeoutSeconds>300</TimeoutSeconds>
<RequireOutput>true</RequireOutput>
<Files/>
</WriteAction>
</Task>