Query DFS Replication Service Status
Microsoft.Windows.FileServer.DFSR.ServiceQueryStatusAgentTask (Task)
Queries the DFS Replication service by using the SC Query DFSR command to determine whether the service is running.
Element properties:
Member Modules:
Source Code:
<Task ID="Microsoft.Windows.FileServer.DFSR.ServiceQueryStatusAgentTask" 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\sc.exe</ApplicationName>
<WorkingDirectory>%SYSTEMROOT%\temp</WorkingDirectory>
<CommandLine>query dfsr</CommandLine>
<TimeoutSeconds>60</TimeoutSeconds>
<RequireOutput>true</RequireOutput>
</ProbeAction>
</Task>