Oct
21
WSH and scheduled tasks
October 21, 2009 |
Some days ago in my work a costumer needed a solution based on WSH(Windows Script Host). The main objetive was to test a established IPSec tunnel. Because the firewall was not part of VPN Domains, ICMP tests would reveal if the tunnel was active or not. Observe the code below:

Save the code under a .vbs name extension and get the results with cscript or wscript interpreters. Click on the image to visualize it in a friendly size.
Not necessarily SMTP service needs to run on a localserver. You can authenticate yourself in any other place if you have an account.