What VPN software are you using? If it is the built in Windows VPN client then you can automate it using Windwows APIs - if it is some third party software like Cisco VPN or SonicWall VPN Client then I think you may be a bit stuck..