Results 1 to 6 of 6

Thread: Auto map network drive on VPN connect

  1. #1
    Join Date
    Mar 2010
    Posts
    69

    Auto map network drive on VPN connect

    I have a lot of computer in my network connected to a single server. I want to set it up in such a way that if a user connect to the VPN it will automatically map to the network drive. My intention is that we don't want to go to each and every persons computer to map the drive. So is there any way to get it done automatically?

  2. #2
    Join Date
    Jun 2009
    Posts
    1,205

    Re: Auto map network drive on VPN connect

    You can create a batch including auto vpn plus mapping. In the script, you provide all the steps to connect to vpn connection and then use "net use" command to map the network drive. But make sure you have netbios enabled over TCP.

  3. #3
    Join Date
    Jan 2006
    Posts
    4,224

    Re: Auto map network drive on VPN connect

    There is 2 ways, first is you get connected to VPN connection as you do usually and then run a batch file from the user's computer to map the network drive. Or you go to login box, connect using a dial up connection and get connected to VPN before login process completes and then a script runs from the server which may even include drive mapping.

  4. #4
    Join Date
    Nov 2008
    Posts
    1,066

    Re: Auto map network drive on VPN connect

    But why do you want to do that automatically, you can even do that manually and it hardly takes few minutes to map a network drive? You can have some automation for connecting VPN but mapping a network drive is very simple, a small command is enough to get a drive mapped.

    Try
    net use Z: "\\server\share" password /USER:Userid
    Make sure you give the correct path of the drive and folder and also provide the correct username and password to avoid any errors.

  5. #5
    Join Date
    May 2008
    Posts
    945

    Re: Auto map network drive on VPN connect

    I would add certain points in support of Connect_Me. If your main concern is to map a drive, go to command prompt and type
    Code:
    net  use  x:  \\ServerName\ShareName
    where servername is the name of the server on which the file/folder is present and the sharename is the name of the drive to which you want to map. If you are unsure about the server name then you can even use the IP address of the server such as "192.168.1.1\ShareName"

    Create this file in any editor and save it with .bat extension.

  6. #6
    Join Date
    Mar 2011
    Posts
    1

    Re: Auto map network drive on VPN connect

    I'll grant that mapping a network drive is quite easy. I think what has been forgotten, though, is that most users don't care to bother with those "easy geek things." Automatically mapping network drives will certainly keep all those C-level users happy, and that's what we IT professionals are supposed to do.

Similar Threads

  1. MAC OSX 10.5.2 Auto Map Network Drive
    By Macario in forum Networking & Security
    Replies: 7
    Last Post: 25-09-2010, 12:01 PM
  2. Auto Mapping Network Drive VBS
    By Mulan in forum Networking & Security
    Replies: 6
    Last Post: 11-05-2010, 11:06 PM
  3. How to add auto map network drive in samba server config
    By Feng in forum Networking & Security
    Replies: 6
    Last Post: 11-05-2010, 10:56 PM
  4. Replies: 2
    Last Post: 19-03-2009, 03:49 AM
  5. How to connect a network hard drive on your PC ?
    By CiscoUser in forum Networking & Security
    Replies: 2
    Last Post: 26-11-2008, 05:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •