I've run in to a problem on my script. Some users in our corporation use VPN clients internally and externally. I have my logon script set up so that it looks at the 3rd octet of the subnet to determine what drives need to map as our remote offices are split up by the 3rd octet...

The problem is the VPN gives an IP of 172.16.x.x and the internal address is 192.168.x.x. Is there a way to bypass the VPN address and look at the internal address? And if the internal address is a non private ip address map a certian set of drives (Connected with aircard)?

Right now im using SELECT and CASE to split up the subnet mappings.

Thanks again everyone has been very helpful here!