Stop DNS Service

Microsoft.Windows.Server.DNS.Task.StopService (Task)

Stop the DNS Service

Element properties:

TargetMicrosoft.Windows.Server.DNS.Server
AccessibilityPublic
CategoryCustom
EnabledTrue
RemotableFalse
Timeout300

Member Modules:

ID Module Type TypeId RunAs 
WA WriteAction System.CommandExecuter Microsoft.Windows.Server.DNS.ActionAccount

Source Code:

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