Stop DNS Service
Microsoft.Windows.DNSServer.Library.Task.StopService (Task)
Element properties:
Member Modules:
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>