Question : VBS scripts for mapping drives on home PC

Our users connect remotely through VPN.
They use their PCs/laptops, etc from home.

We gave them a set of instructions on the software to use and how to set it up.
The company DOES NOT provide the user with a laptop or any kind of HW.

A VBS script was created to map the drives of the company but it does not work.

My question, we use DHCP, and everything is done through DHCP:  router, DNS, etc.

When the vbs script is run, it does not map the drives, but I can manually map them through an IP address.   An executive claims it works on his PC, but no one
else can get it to work.  I can map the drives through IP address and when that happens it asks for user ID and PW.   Keep in mind we have to put in
the domain name xxxxxxx/username, then password, which is fine.

I'm trying to explain to the IT people where, since they are logged in locally, that is why you have to use domain/user name.  but I don't understand why
we have to use IP addresses.
The VPN connection works because I can get in and use a remote SW, but I have to use the IP Address.

any suggestions why I cannot use UNC, computer name.

Thanks

Answer : VBS scripts for mapping drives on home PC

It sounds like it's a DNS issue, when you VPN in, you need to have the DNS servers from your work as your primary DNS for the VPN connection.  

DNS is what translates nice and friendly server names into IP addresses (Server1 = 10.10.10.1, etc..).  That's why you can't map a drive with the server name but CAN do it with the IP address.

Depending on the VPN solution that your company is using, they could be able to tweek the VPN configuration to "force" the DNS settings on your computer when you connect.  Another more "dirty" workaround (and much less dynamic) would be to edit your HOSTS file on your home computer and add in whatever NAME to IP resolutions that are needed.  Keep in mind that these will break as soon as they upgrade servers/change IP addresses on them, but will get you by....

Scooter
Random Solutions  
 
programming4us programming4us