On Windows 7 SP1 Home, how to: 1) setup an automatic VPN connection at startup (in the background) - every time after a particular user logged onto computer there should be 3-5 attempts to connect to a particular VPN (user info/password already saved for this connection) 2) after successfully establishing the VPN connection, send an email in background with VPN's "clients IPv4 address" in the message body
rasdial
. 2) use the script to ping a remote IP on the VPN destination and when you get a valid reply send your email