I have setup a remote access VPN for an office so that remote users can connect to access resources through Cisco VPN client. The problem is that users would like various network drives mapped when connected to the VPN.
My first thought was to have a .vbs script on the user's desktop they could double click after connecting but I'd like to automate it possible.
I would like a VB or even a batch script that runs on startup that will detect the VPN is connected and map the drives or run another script that will do so. I'm thinking that it could work a bit like this:
Ping remote server's private IP address every few minutes, if it receives a reply it would check to see if the drives are mapped already, if not it would either map the drives or run a second script that I can make later.
If it doesn't receive a reply it can check to see if the drives are mapped already, if they are it can delete the map drives and continue in a loop. All systems in the network are Windows.
Can this be done?