偵測電腦 (經由路由)

Microsoft.Windows.Computer.PingWithRoute (ConsoleTask)

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

Element properties:

TargetMicrosoft.Windows.Computer
Application\%windir\%\system32\pathping.exe
WorkingDirectory
isRequireOutputTrue
AccessibilityInternal
EnabledTrue

Source Code:

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