powershellcmdippingmsg

Windows pop up message when responds to ping [cmd, PowerShell]


Is it possible to run a specific script and receive a message (like msg command) when the pinged machine becomes available?

ping -n <Address> | find "TTL=" && (
msg * Online
)

Solution

  • Here is a PowerShell way:

    ping -t <Address> | Select-String 'TTL=' | Select-Object -First 1
    msg * Online