Results 1 to 9 of 9

Thread: VPN /MAP drive

  1. #1
    Join Date
    Jul 2006
    Posts
    142
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default VPN /MAP drive

    Ok guys!

    Here is the deal. I need to find a way to make a file or just a way (like a .bat file or something) that would setup the vpn automatically and map my drive and whenever I restart it will connect automatically without the users help. Basically we are trying to eliminate the users involvement in the setup of VPN and MAPPING DRIVE so that they don’t have to know any of the server address. Here is a sample of automatic ‘map drive’ batch file. All the user has to do is just run the file.

    rem this file will remove all current drive mappings on the respective
    rem drive letter then remap the connections

    @echo off

    cls
    echo.
    echo If you are using this from home
    echo.
    echo Please make sure you have connected your vpn connection to IUP First
    echo Please press a key on the keyboard to continue with the connection process...
    Pause > nul
    cls

    c:
    cd\windows\system32

    rem delete all the drives potentially in use
    net use g: /d
    net use h: /d
    net use i: /d
    net use n: /d
    net use o: /d
    net use p: /d
    net use w: /d
    net use x: /d

    rem remap the drives

    net use g: \\ecbs\aps$ /persistent:Yes
    net use h: /hrmn /persistent:Yes
    net use i: \\aaaa1\ins$ /persistent:Yes
    net use n: \\abbbb\com /persistent:Yes

  2. #2
    Join Date
    Jul 2006
    Posts
    142
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default Other forums

    Is there any other forums where I can ask question about network, VPN, map drive question? where you guys would go!!

  3. #3
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    Why don't you try using WSH instead of using bat files. You can do the programming using VBScript mostly to tackle even the OS level operations.

    I used to visit http://www.security-forums.com they have a good network forums in it.

  4. #4
    Join Date
    Jul 2006
    Posts
    142
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    ok!! how do i do that (using wsh)?

  5. #5
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    This link has an article about using VBScript for mapping a drive.

    Check this.

    The following are some good areas where you can learn starting and using Windows Scripting Host operations.

    MSDN Online

    Microsoft Technet

    WSH Reference MSDN
    Last edited by codeexploiter; 11-28-2006 at 10:10 AM. Reason: Added some WSH resources

  6. #6
    Join Date
    May 2019
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi. Typically, most well known VPN providers offers automatic setup. But as to mapping your drive I think you need to change protocols to map it. Perhaps this guide will give you an idea to setting up VPN.

  7. #7
    Join Date
    Jul 2019
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Here's also an extremely useful article on VPN services: https://vpn-review.com/ It helped me a lot while I was trying to configure all the settings to make it work properly.

  8. #8
    Join Date
    Aug 2019
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by chrispeddler View Post
    Hi. Typically, most well known VPN providers offers automatic setup. But as to mapping your drive I think you need to change protocols to map it. Perhaps this guide will give you an idea to setting up VPN.
    Agreed. Change in the protocol is required in order to map it. I would also suggest looking a few other online privacy-related options as VPN itself is not the only solution to protect from online threats.

  9. #9
    Join Date
    Jan 2007
    Location
    Davenport, Iowa
    Posts
    2,138
    Thanks
    96
    Thanked 98 Times in 96 Posts

    Default

    Locking this thread as it is 13 years old.
    To choose the lesser of two evils is still to choose evil. My personal site

Bookmarks

Posting Permissions

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