Stop DNS Service

Microsoft.Windows.DNSServer.Library.Task.StopService (Task)

Element properties:

TargetMicrosoft.Windows.DNSServer.Library.Server
AccessibilityPublic
CategoryCustom
EnabledTrue
RemotableFalse
Timeout300

Member Modules:

ID Module Type TypeId RunAs 
PA WriteAction System.CommandExecuter Microsoft.Windows.DNSServer.Library.ActionAccount

Source Code:

<Task ID="Microsoft.Windows.DNSServer.Library.Task.StopService" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.DNSServer.Library.Server" Timeout="300" Remotable="true">
<Category>Custom</Category>
<WriteAction ID="PA" RunAs="Microsoft.Windows.DNSServer.Library.ActionAccount" TypeID="System!System.CommandExecuter">
<ApplicationName>%windir%\system32\net.exe</ApplicationName>
<WorkingDirectory/>
<CommandLine>stop dns</CommandLine>
<TimeoutSeconds>30</TimeoutSeconds>
<RequireOutput>true</RequireOutput>
<Files/>
</WriteAction>
</Task>