Stop the Cluster service

Microsoft.Windows.Cluster.StopService (Task)

This task stops the Cluster service.

Knowledge Base article:

Summary

This task stops the Cluster service on the specified cluster node.

Element properties:

TargetMicrosoft.Windows.Cluster.Service
AccessibilityPublic
CategoryMaintenance
EnabledTrue
RemotableFalse
Timeout300

Member Modules:

ID Module Type TypeId RunAs 
WA WriteAction System.CommandExecuter Default

Source Code:

<Task ID="Microsoft.Windows.Cluster.StopService" Accessibility="Public" Enabled="true" Target="Cluster!Microsoft.Windows.Cluster.Service" Timeout="300" Remotable="false">
<Category>Maintenance</Category>
<WriteAction ID="WA" TypeID="System!System.CommandExecuter">
<ApplicationName>%windir%\System32\net.exe</ApplicationName>
<WorkingDirectory/>
<CommandLine>stop $Target/Property[Type='Cluster!Microsoft.Windows.Cluster.Service']/ServiceName$</CommandLine>
<TimeoutSeconds>300</TimeoutSeconds>
<RequireOutput>true</RequireOutput>
<Files/>
</WriteAction>
</Task>