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:

TargetMicrosoft.Windows.FileServer.DFSR.Service
AccessibilityPublic
CategoryMaintenance
EnabledTrue
RemotableFalse
Timeout300

Member Modules:

ID Module Type TypeId RunAs 
PA ProbeAction System.CommandExecuterProbe Microsoft.Windows.FileServer.DFSR.MonitoringAccount

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>