KMS Stop Service

Microsoft.KMS.ServerRole.StopService.Task (Task)

It stops Key Management Service : slsvc.exe on VISTA or Windows 2008 Server or sppsvc.exe on Windows 2003 Server

Element properties:

TargetMicrosoft.KMS.ServerRole
AccessibilityPublic
CategoryMaintenance
EnabledTrue
RemotableFalse
Timeout300

Member Modules:

ID Module Type TypeId RunAs 
WA WriteAction System.CommandExecuter Default

Source Code:

<Task ID="Microsoft.KMS.ServerRole.StopService.Task" Accessibility="Public" Enabled="true" Target="Microsoft.KMS.ServerRole" Timeout="300" Remotable="true">
<Category>Maintenance</Category>
<WriteAction ID="WA" TypeID="System!System.CommandExecuter">
<ApplicationName>%SystemRoot%\System32\net.exe</ApplicationName>
<WorkingDirectory>%SYSTEMROOT%\temp</WorkingDirectory>
<CommandLine>stop $Target/Property[Type="Microsoft.KMS.ServerRole"]/ImageName$</CommandLine>
<TimeoutSeconds>60</TimeoutSeconds>
<RequireOutput>true</RequireOutput>
<Files/>
</WriteAction>
</Task>