Stop DFS Replication Service
Microsoft.Windows.FileServer.DFSR.ServiceStopAgentTask (Task)
Stops the DFS Replication service by running the Net Stop DFSR command.
Element properties:
Member Modules:
Source Code:
<Task ID="Microsoft.Windows.FileServer.DFSR.ServiceStopAgentTask" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.FileServer.DFSR.Service" Timeout="300" Remotable="true">
<Category>Maintenance</Category>
<ProbeAction ID="PA" RunAs="Microsoft.Windows.FileServer.DFSR.MonitoringAccount" TypeID="System!System.CommandExecuterProbe">
<ApplicationName>%SystemRoot%\System32\net.exe</ApplicationName>
<WorkingDirectory>%SYSTEMROOT%\temp</WorkingDirectory>
<CommandLine>stop dfsr</CommandLine>
<TimeoutSeconds>60</TimeoutSeconds>
<RequireOutput>true</RequireOutput>
</ProbeAction>
</Task>