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:
Member Modules:
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>