Discussion Locked

VPN login twice to map drive

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have setup a vpn to 10 stores from windows 2000 box, problem is I connect perfectly but it will not map drive, I disconnect then reconnect and it's maps perfectly. ?? Any clues. Thanks

6 replies

by enrique corona

Hi, try this batch.

@echo off
net use H: /delete
net use H: \\example\exapledrive:

just change the h: and example and exampledrive: to your settings.

this batch deletes the existing mapped drive and remaps the drive,, this should solve your problem.

by enrique corona

the bad thing about adding the ip addresses to the lmhosts or hosts is that if you use dinamic ip?s its just no going to work.

by Member 26581567

On other thing to check is the c:\winnt\system32\drivers\etc\hosts file to ensure the hosts are listed with their IP addresses...sometimes NetBios and DNS conflict and can't always connect to drives right away.

by a.lesenfants

exactly! You need to define the ip address of your servers and their corresponding names in the lmhosts file in c:\windows\system32\etc\ then import it for the connection that the vpn uses.

by point05

Sugestions have worked but the problem I have not is 10 stores, all new machines, all win2k new install, vpn connects perfectly no problem, but can't map a drive through the vpn. all settings to other working stores same. all store ip addresses are different. Any help would be !! well helpfull. I could work this out myself in good time but you guys are possibly smarter than I,,, thankyou.

by point05

Sugestions have worked but the problem I have not is 10 stores, all new machines, all win2k new install, vpn connects perfectly no problem, but can't map a drive through the vpn. all settings to other working stores same. all store ip addresses are different. Any help would be !! well helpfull. I could work this out myself in good time but you guys are possibly smarter than I,,, thankyou.

This discussion is closed to new replies.