Stop Certificate Service (2016+)

Microsoft.Windows.CertificateServices.CARole.2016.StopService (Task)

This task stops the certificate Service

Knowledge Base article:

Summary

This task stops the certificate Service

Element properties:

TargetMicrosoft.Windows.CertificateServices.CARole.2016
AccessibilityInternal
CategoryMaintenance
EnabledTrue
RemotableFalse
Timeout300

Member Modules:

ID Module Type TypeId RunAs 
PA WriteAction System.CommandExecuter Default

Source Code:

<Task ID="Microsoft.Windows.CertificateServices.CARole.2016.StopService" Accessibility="Internal" Enabled="true" Target="CSDisc!Microsoft.Windows.CertificateServices.CARole.2016" Timeout="300" Remotable="true">
<Category>Maintenance</Category>
<WriteAction ID="PA" TypeID="System!System.CommandExecuter">
<ApplicationName>%windir%\System32\net.exe</ApplicationName>
<WorkingDirectory/>
<CommandLine>stop certsvc</CommandLine>
<TimeoutSeconds>300</TimeoutSeconds>
<RequireOutput>true</RequireOutput>
</WriteAction>
</Task>