Ping Computer (with Route)

Microsoft.Windows.OperatingSystem.PingWithRoute (ConsoleTask)

Uses pathping.exe to show route to target computer and calculates round trip time (RTT) and other useful statistics.

Element properties:

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

Source Code:

<ConsoleTask ID="Microsoft.Windows.OperatingSystem.PingWithRoute" Accessibility="Internal" Enabled="true" Target="Windows!Microsoft.Windows.OperatingSystem" 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>