Kontrola, zda je služba stavu spuštěná.

Microsoft.SystemCenter.HealthService.Diagnostic.QueryHealthService (Diagnostic)

Dálkově kontroluje, zda je služba stavu aktuálně spuštěná na cílovém počítači.

Element properties:

TargetMicrosoft.SystemCenter.HealthServiceWatcher
MonitorMicrosoft.SystemCenter.HealthService.Heartbeat
RemotableTrue
Timeout300
Execute On StateError
CategoryMaintenance
Enabledtrue
AccessibilityPublic
CommentQueries both Service State and configuration. If the service doesn't exist or the computer cannot be contacted, State value will reflect this.

Member Modules:

ID Module Type TypeId RunAs 
QueryRemoteHS ProbeAction Microsoft.Windows.ServiceControlManager.QueryService Microsoft.SystemCenter.AgentManagementAccount

Source Code:

<Diagnostic ID="Microsoft.SystemCenter.HealthService.Diagnostic.QueryHealthService" Comment="Queries both Service State and configuration. If the service doesn't exist or the computer cannot be contacted, State value will reflect this." Accessibility="Public" Enabled="true" Target="SCLibrary!Microsoft.SystemCenter.HealthServiceWatcher" Monitor="SC2007!Microsoft.SystemCenter.HealthService.Heartbeat" ExecuteOnState="Error" Remotable="true" Timeout="300">
<Category>Maintenance</Category>
<ProbeAction ID="QueryRemoteHS" RunAs="SCLibrary!Microsoft.SystemCenter.AgentManagementAccount" TypeID="Windows!Microsoft.Windows.ServiceControlManager.QueryService">
<ComputerName>$Target/Property[Type="SCLibrary!Microsoft.SystemCenter.HealthServiceWatcher"]/HealthServiceName$</ComputerName>
<ServiceName>HealthService</ServiceName>
</ProbeAction>
</Diagnostic>