I am trying to figure out a way to get my domain policies and logon scripts to run when a remote user connects to my VPN. I remember in a previous job that someone had created a VBScript that would send a single ping request to a Domain Controller like every 30 seconds until it received a reply. Once it was able to contact the DC a second script was called that would map network drives and synchronize it with the domain. I am primarily a network engineer and don't typically provide any type of application support so I have no idea where to begin. Once I have the VBScript I will create an executable using IExpress that will call it to run at logon. Does anyone have any idea how to create these scripts?

I really appreciate any help you can provide.