偵測電腦 (經由路由)

Microsoft.SystemCenter.HealthService.PingWithRoute (ConsoleTask)

使用 "pathping.exe" 顯示通往目標電腦的路由,並計算來回行程時間 (RTT) 及其他有用的統計資料。

Element properties:

TargetMicrosoft.SystemCenter.HealthService
Application\%windir\%\system32\pathping.exe
WorkingDirectory
isRequireOutputTrue
AccessibilityInternal
EnabledTrue

Source Code:

<ConsoleTask ID="Microsoft.SystemCenter.HealthService.PingWithRoute" Accessibility="Internal" Enabled="true" Target="SCLibrary!Microsoft.SystemCenter.HealthService" RequireOutput="true" Category="MonitoringObject">
<Application>%windir%\system32\pathping.exe</Application>
<Parameters>
<Parameter>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Parameter>
</Parameters>
<WorkingDirectory/>
</ConsoleTask>