Short script for send an email when your host loose the ping from a remote host.
Introduce the script in Task Scheduler.
Tested on Powershell 5
Confirm that you have powershell 5+
Add in the variable: $servername hostnames or ipaddress that you want check.
Configure ##### SMTP Configuration ###### with your parameters of SMTP Server, if you are using google confirm https://myaccount.google.com/lesssecureapps is active.
- Powershell - Getting Started with Powershell
- VGzsysadm - https://sysadm.es - @VGzsysadm